Practice · 2 of 4
Weekend Detector
CHALLENGE
Difficulty: beginner+25 XP
day = "sat" is given. Print weekend if day is "sat" or "sun"; otherwise print weekday.
Press Submit to check your solution.
Back to lesson: Practice: Logic & Truthiness
Practice · 2 of 4
day = "sat" is given. Print weekend if day is "sat" or "sun"; otherwise print weekday.
Back to lesson: Practice: Logic & Truthiness