Advertisement
course123

Untitled

Dec 11th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. print("Hello, I am Michael, your personal bot")
  2. user_name = input("whats your name?" + "(type your name and press Enter)")
  3. print(" Welcome " + user_name + ", lets get started ")
  4. print(" Today we are going to add two numebers together")
  5. input1 =input("Enter firstnumber>")
  6. input2 =input("Enter secondnumber>")
  7. firstnumber= int(input1)
  8. secondnumber=int(input2)
  9. result = firstnumber+secondnumber
  10. output =str(result)
  11. print(input1+ "+" + input2 + "=" +output)
  12.  
  13. print("is your answer")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement