Advertisement
HBSB

Section 1.15 challenge

Dec 26th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. print ("The calculation below are my efforts to meet the challenge set in Section 1.15.")
  2.  
  3. print ("I will take a rectangle.  The sides are 20 cm and 30 cm.")
  4.  
  5. input1=input("Number1>")
  6. input2=input("Number2>")
  7. input3=input("Number3>")
  8. input4=input("number4>")
  9. number1=int(input1)
  10. number2=int(input2)
  11. number3=int(input3)
  12. number4=int(input4)
  13. result=number1+number2+number3+number4
  14. output=str(result)
  15. print (input1+"+"+input2+"+"+input3+"+"+input4+"="+output)
  16. print ("The distance around the rectangle is 100 cms.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement