Mega Code Archive

 
Categories / Python Tutorial / Statement
 

Creating MultiLine Statements

total_sum = sum_item_one + \             sum_item_two + \             sum_item_three # Statements contained within the [], {}, or () brackets do not need to use the line continuation character.  week_list = ['Monday', 'Tuesday', 'Wednesday',              'Thursday', 'Friday']