Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ship_width = float(input())
- ship_length = float(input())
- ship_height = float(input())
- average_astronaut_height = float(input())
- ship_volume = ship_height*ship_length*ship_width
- room_volume = (average_astronaut_height + 0.40) * 2 * 2
- number_of_astronauts = round(ship_volume / room_volume)
- if number_of_astronauts < 3:
- print("The spacecraft is too small.")
- elif number_of_astronauts > 10:
- print("The spacecraft is too big.")
- else:
- print(f'The spacecraft holds {number_of_astronauts} astronauts.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement