repl.it
@AlexanderSmith8/

Function call

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
def print_multi(string, num_of_times):
  """Print string a few times"""
  for num in range(num_of_times):
    print(string)

print_multi("Hello", 5)