Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #input checker
- x = int(input("Enter the width of the parcel..."))
- y = int(input("Enter the length of the parcel..."))
- z = int(input("Enter the depth of the parcel..."))
- w = int(input("Enter the weight of the parcel..."))
- d = x + y + z
- if x <=80 and y <=80 and z <=80 and d <=200 and w >=1 and w <=10:
- print("Parcel Accepted!")
- else:
- print("Parcel rejected due to...")
- if x >80:
- print("Width too big")
- if y >80:
- print("Length too big")
- if z >80:
- print("Depth too big")
- if d >200:
- print("Dimensions too big")
- if w <1:
- print("Weight too light")
- if w >10:
- print("Weight too heavy")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement