Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. users_name = input("Hi..I'm Python..what's your name? ")
  2. print("Welcome " + users_name + " are you cool to code? ")
  3. print("lets calculate the volume of a cube in mm3")
  4. input1 = input("length of side in mm> ")
  5.  
  6. number1 = float(input1)
  7.  
  8. result = number1 * number1 * number1
  9. print("The volume of your cube is " + str(result) + " mm3")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement