Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def intro():
- print("Let's do some coding.")
- intro = input("If you want to add two numbers write 'add' or 'plus': ")
- if intro == "add" or intro == "plus":
- print("Let's add some numbers:")
- input1 = input("Number 1> ")
- input2 = input("Number 2> ")
- number1 = int(input1)
- number2 = int(input2)
- result = number1 + number2
- output = str(result)
- print("The result of the sum: " + input1 + " + " + input2 + " = " + output)
- print("That's all, bye.")
- intro()
- intro()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement