Statements in python totally end with a new line. Python
does allow the use of the line continuation character(\) to denote that the
line should continue. For example:
Total = item_one + \
            Item_two + \
            Item_three 
Statements contained within the [], {}, () brackets do not
need to use the line continuation character. For example:
Days = [‘Monday’, ‘Tuesday’, ‘Wednesday’, 
                        ‘Thursday’,
‘Friday’]
 
No comments:
Post a Comment