Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python
- print("Hi, I am Marvin, your personal bot.")
- print("let calculate the area of square")
- measure = input("what is measurement unit cm or inches >")
- input1 = input("Length side measurement > ")
- input2 = input("Width side measurement > ")
- number1 = int(input1)
- number2 = int(input2)
- result = number1 * number2
- output = str(result)
- print("the area of the square is "+ input1 + " * " + input2 + " = " + output + " squared " + measure)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement