Tuesday, November 18, 2014

Indentation

Indentation in Python

By default python uses 4 spaces per indentation level


Example:>>>def A1( ):

                     ____x=10

                     ____for i in range(1,10,1)

                     ________print i



Spacing and maximum length of a line is 79.


Do not mix Tabs and spaces.

No comments:

Post a Comment