differences between python and others

  1. There is no seperate long type.The int type can be an integer of any size
  2. Strings in double quote work exactly the same way as strings in single quote.
  3. There is no seperate char data type in python.
  4. Python is a strongly object_oriented in the sense that everything is an object including numbers,strings and functions.
  5. Varibles are used by just assigning them a value. No declaration or data type definition is needed/used.
  6. (multiply) can return the string repeated that many times. e.g. `’Tom’3` gives ‘TomTomTom’
  7. **(power) e.g. 3**4 gives 81
  8. //(divide and floor): Divide x by y and round the answer down to the nearest integer value.
  9. ^(bit-wise XOR); ~ (bit-wise invert):the bit-wise inversion of x is -(x+1)
  10. not(boolean NOT !) ;and(boolean AND &&); or(boolean OR ||)
  11. There is no switch statement in Python.You can use an if..elif..else statement to do the samething(and in some cases,use a dictionary to do it quickly)
  12. You can have an else clause for the while loop
  13. You can have an else clause for the for..in.. loop;if you use a break to break out of a for or while loop,any corresponding loop else block is not executed