Skip to content

Commit

Permalink
feat: create a function
Browse files Browse the repository at this point in the history
Multiply two numbers
  • Loading branch information
DamianFlynn committed Nov 16, 2022
1 parent 0de4cd1 commit b53bfc6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions script.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Set the input
number = 5

# Multiply by two
result = number * 2
def multiply(number: int, multiplier: int):
"""Multiply number by multiplier."""
return number * multiplier


# Display the result
print(result)
print(multiply(5, 2))

0 comments on commit b53bfc6

Please sign in to comment.