Skip to content

Instantly share code, notes, and snippets.

@mosh-hamedani
Created October 10, 2018 19:31
Show Gist options
  • Save mosh-hamedani/a2386065f3c3e29d52282bb0a2c59ba5 to your computer and use it in GitHub Desktop.
Save mosh-hamedani/a2386065f3c3e29d52282bb0a2c59ba5 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")
@mcmasterml
Copy link

yes

@AlenaCinnamon
Copy link

Thank you, Mosh!

@abdelkader-faleh
Copy link

Thanks, Mosh

@vahidn96
Copy link

vahidn96 commented Apr 1, 2023

Thanks so much, Mosh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment