The boundaries between video lengths
Fill in the blanks · Medium · §6.4 Decided at the boundary
The code sorts videos into kinds by their length seconds (in seconds). 60 seconds or less is a short video, more than 60 seconds but less than 600 seconds is a medium video, and 600 seconds or more is a long video. The length can also be a decimal, such as 60.5. Fill in the two blanks with conditions.
Code with blanks
seconds = 60
if ____:
kind = "short video"
elif ____:
kind = "medium video"
else:
kind = "long video"
print(kind)Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.