Skip to content

Instantly share code, notes, and snippets.

@AlenaCinnamon
Forked from mosh-hamedani/multiply.py
Created October 6, 2022 21:09
Show Gist options
  • Save AlenaCinnamon/aa87dcf692266a26768dde65053a758c to your computer and use it in GitHub Desktop.
Save AlenaCinnamon/aa87dcf692266a26768dde65053a758c 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