Level 1: Beginner
a=int(input())
b=int(input())
print(f"the sum of two numers is {a+b}")
first_num = int(input("enter first num"))
second_num = int(input("enter second num"))
sum = first_num + second_num
print(f"the sum of two numbers is {sum}")
I have done mine.
def sum_two_numbers():
first_number = int(input("Enter the first number: "))
second_number = int(input("Enter the second number: "))
result = first_number + second_number
print(f"The sum of two numbers is {result}.")
sum_two_numbers()
a=int(input())
b=int(input())
print(f"the sum of two numers is {a+b}")
first_num = int(input("enter first num"))
second_num = int(input("enter second num"))
sum = first_num + second_num
print(f"the sum of two numbers is {sum}")
I have done mine.
def sum_two_numbers():
first_number = int(input("Enter the first number: "))
second_number = int(input("Enter the second number: "))
result = first_number + second_number
print(f"The sum of two numbers is {result}.")
sum_two_numbers()