Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hello, there!")
- print("Let me introduce myself:")
- print("I am Martina, a silly bot, at your service")
- print("Welcome!")
- print("To begin, tell me:")
- user_name = input("What is your name?")
- print("Hi, " + user_name + ", nice to meet you!")
- print("Now, let's do some math!")
- input1 = input("Type your 1st number - ")
- input2 = input("Type 2nd number - ")
- input3 = input("Type 3rd number - ")
- number1 = int(input1)
- number2 = int(input2)
- number3 = int(input3)
- result = number1 + number2 + number3
- output = str(result)
- print("Let's see what we've got?")
- print(input1 + " + " + input2 + " + " + input3 + " = " + output)
- print("Let's try multiplying with decimal numbers:")
- input3 = input("Choose decimal 1 - ")
- input4 = input("Choose decimal 2 - ")
- decimal1 = float(input3)
- decimal2 = float(input4)
- result2 = decimal1 * decimal2
- output2 = str(result2)
- print(input3 + " * " + input4 + " = " + output2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement