Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sum_2_numbers():
- input0 = input("What is your name? ")
- print("Hello " + input0 + " lets add two numbers")
- input1 = input("Number 1> ")
- input2 = input("Number 2> ")
- number1 = float(input1)
- number2 = float(input2)
- result = number1 + number2
- output = str(result)
- print(input1 + " + " + input2 + " = " + output)
- print("Bye for now " + input0)
- sum_2_numbers()
- sum_2_numbers()
Advertisement
Add Comment
Please, Sign In to add comment