Skip to main content
1 of 3
moinudin
  • 13k
  • 7
  • 35
  • 40

Multiple statements can be put on one line separated by ;. This can save a lot of whitespace from indentation.

while foo(a): print a;a*=2 
moinudin
  • 13k
  • 7
  • 35
  • 40