Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I am Marvick, your personnal bot")
- print("Let's rock the world!")
- print("What is your name?")
- user_name1=input("")
- print("Welome "+user_name1+", Lets get started")
- command = input("How can I help? ")
- if command == "add" or command == "plus":
- print("Lets "+command+" some numbers")
- print("Please insert first number")
- input_1=input("Number 1>")
- input_2=input("Number 2>")
- number_1=int(input_1)
- number_2=int(input_2)
- result=number_1+number_2
- result_ouput=str(result)
- print(input_1 + "+" + input_2 + "=" + result_ouput)
- else:
- print("sorry i cant help you")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement