**Not a member of Pastebin yet?**

**, it unlocks many cool features!**

__Sign Up__- finished = False
- print("Hi, I am Bob, your personal bot.")
- print("Let us get started")
- print()
- users_name = input("What should I call you ? ")#ask the user their name
- print("Nice to meet you " + users_name + " lets do some Maths ")
- print ()
- while finished == False:
- command = input("Would you like to Add or Subtract ,multiply divide or get the Average today " +users_name + "? " )
- if command == "add" or command == "+" :
- print ("Lets add some numbers then .")
- input1 = input("First number to add is ")
- input2 = input("Second number to add is ")
- number1 =int(input1)
- number2 =int(input2)
- total = number1 + number2
- output = str(total)
- print (output)
- ### Subtract ###
- elif command == "subtract" or command == "-" or command == "minus" :
- print ("Ok cool lets subtract some numbers")
- input1 = input("First number to subtract is ")
- input2 = input("Second number to subtract is ")
- number1 =int(input1)
- number2 =int(input2)
- total = number1 - number2
- output = str(total)
- print ("your numers "+input1 + " and "+input2+" were subtracte to get you "+output+ ".")
- ### Average ###
- elif command == "average" or command == "Average":
- how_many = input("How many numbers> ")
- how_many = int(how_many)
- total = 0
- for number_count in range (how_many):
- number = input("what is the number" +str(number_count)+ ">")
- total = total + int(number)
- result = total / how_many
- print ("the average is "+str(result) + ".")
- ### Multiply ###
- elif command == "*" or command == "multiply" or command == "x" :
- print ("lets multiply some numbers then so")
- input1 = input("First number to multiply is ")
- input2 = input("Second number to miltply is ")
- number1 =int(input1)
- number2 =int(input2)
- total = number1 * number2
- output = str(total)
- print ("your numbers "+input1 + " and "+input2+" were multplyed to get you "+output+ ".")
- elif command == "/" or command == "divide" or command == "--" :
- print ("lets divide some numbers then so")
- input1 = input("First number to divide is ")
- input2 = input("Second number to divide is ")
- number1 =int(input1)
- number2 =int(input2)
- total = number1 / number2
- output = str(total)
- print ("your numbers "+input1 + " and "+input2+" were divide to get you "+output+ ".")
- elif command == "bye" :
- finished = True
- print ("ok good bye")
- else:
- print ("Sorry i dont know that one ")
- #print ("ok what will we do next ")
- #colour = input("pick a colour ")

RAW Paste Data