Skip to content

Commit

Permalink
feat: Sum in python - modifica
Browse files Browse the repository at this point in the history
  • Loading branch information
linuchs committed Oct 30, 2023
1 parent c72f9cf commit 7179309
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/sum.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
""" Write a program that takes as input two numbers and print the sum.
"""
Write a program that takes as input two numbers and print the sum.
Output:
Insert the first number: 1
Insert the second number: 2
Sum: 3
"""
def func_somma(var_a: int, var_b: int)-> int:
return var_a+var_b
def sum(var_a: int, var_b: int)-> int:
return var_a + var_b

x=int(input("Insert the first number: "))
y=int(input("Insert the second number: "))

print("Sum: ",func_somma(x,y))
print("Sum: ",sum(x,y))

0 comments on commit 7179309

Please sign in to comment.