Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
def expand(x):
    return ''.join(x) * 3


Print string n times

Code Block
n = 2; 
s ="Programming"; 

print(s * n); # ProgrammingProgramming


Basic Operators

Python Arithmetic Operators

...