Skip to content

Instantly share code, notes, and snippets.

@aliboi
Forked from mosh-hamedani/multiply.py
Created June 18, 2021 15:36
Show Gist options
  • Save aliboi/1d03bfb3a09b9b133f86a81946c495db to your computer and use it in GitHub Desktop.
Save aliboi/1d03bfb3a09b9b133f86a81946c495db to your computer and use it in GitHub Desktop.
def multiply(*numbers):
total = 1
for number in numbers:
total *= number
return total
print("start")
print(multiply(1, 2, 3))
print("finish")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment