Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hi, I'm Marvin, your personal bot.")
- print("Let's get started!")
- users_name =input("What's your name?")
- print("Welcome "+ users_name +" it's nice to meet you!")
- print("lets add some numbers")
- input1=input("Number 1 = ")
- input2=input("Number 2 = ")
- number1=int(input1)
- number2=int(input2)
- result = number1 + number2
- output = str(result)
- print(input1 + " + " + input2 + " = " +output)
- print("We now want to find the area of a triangle")
- height=input("How tall is your triangle?")
- base=input("What is the base of your triangle?")
- height_int=int(height)
- base_int=int(base)
- area_triangle=height_int*base_int/2
- area=str(area_triangle)
- print("The area of your triangle is " + area)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement