Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. print("I am Marvin, the paraoid bot.")
  2. users_name = input("Do you have a name, or should I just grunt in discust? ")
  3. print("Welcome to this miserable world " + users_name + ". ")
  4.  
  5. input1  = input("I am, at a rough estimate, thirty billion time more intellegent than you. Give me a number, any number. ")
  6. input2  = input("Wrong. You see? \nNow give me another. ")
  7. number1 = int(input1)
  8. number2 = int(input2)
  9. result  = number1 + number2
  10. output  = str(result)
  11. print("The total of those two boring numbers you gave me is " + output + ".\n")
  12.  
  13. length = input("That was mind numbingly boring lets try someting harder. \nWe will calculate the area of a rectange. \nWhat is the length of your stupid rectangle? ")
  14. width  = input("Amazing, you did it!\nWhat is its width? ")
  15. len    = int(length)
  16. wid    = int(width)
  17. area   = len * wid
  18. output = str(area)
  19. print("Even a creature with the intellegence like you should know that a rectangle with a\nlength of " + length + " and a width of " + width + "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement