Advertisement
AyedAyedo

2.12 practise

Jan 17th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. print("Hi, I am Marvick, your personnal bot")
  2. print("Let's rock the world!")
  3. print("What is your name?")
  4. user_name1=input("")
  5. print("Welome "+user_name1+", Lets get started")
  6. command = input("How can I help? ")
  7. if command == "add" or command == "plus":
  8.     print("Lets "+command+" some numbers")
  9.     print("Please insert first number")
  10.     input_1=input("Number 1>")
  11.     input_2=input("Number 2>")
  12.     number_1=int(input_1)
  13.     number_2=int(input_2)
  14.     result=number_1+number_2
  15.     result_ouput=str(result)
  16.     print(input_1 + "+" + input_2 + "=" + result_ouput)
  17. else:
  18.     print("sorry i cant help you")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement