Zoe is taking an online class and needs to know whether to study, rest, or do her usual activities according to a program-designed schedule. Create a program for Zoe. The program will take an integer from 0 to 6 (both inclusive) representing days of the week from Monday to Sunday respectively. In the case of a weekday, the program should print 'Study!'. If it's Saturday (5), the program should print 'Rest!', and if it's Sunday (6), the program should print 'Leisure!'.
Managing activities for online class schedule
Report a typo
Sample Input 1:
0Sample Output 1:
Study!Sample Input 2:
5Sample Output 2:
Rest!Write a program in Python 3
# The program starts here
def activity(day):
#Use elif to set conditions for days of the week
# Remember, the days are represented as follows:
# 0 to 4 for Monday to Friday respectively
# 5 for Saturday
# 6 for Sunday
# Write your code here!
# Do not change anything below!
day = int(input())
print(activity(day))
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.