Python Important Points to remember



Important Points to remember


Semi-colon (;) is optional in python
  • print("AETies") ;
  • print("AETies")
  • both will execute without any warning.

We can assign multiple values in one line
  • a,b,c = 10, 20, 30
  • In this case values will be assigned from right to left. first c will be assigned 30, then b will be assigned 20 then in last a will get a will get 10.
  • To understand, try "a,b,c = 10,20, a" first a will be assigned to c but a not yet allocated memory so Python interpreter will throw an error

Python follows indentation
  • No { } concept for function or loop body statement(s)

Every Python is a MODULE

Every thing in python is OBJECT

We can assign any big value in python
  • a =  12345678900987654321...

There is no data type concept, Datatype is decided at run time
  • a=12
  • b=12.35
  • c="Techno Xpresss"


Comments

My photo
Techno Xpresss
Bangalore, Karnataka, India