Week Day Name
EasyP3Coding
Given a number from 1 to 7, return the matching weekday name, with 1 for "Monday" up to 7 for "Sunday".
Example 1
- Input
- num = 1
- Output
- "Monday"
Example 2
- Input
- num = 2
- Output
- "Tuesday"
Example 3
- Input
- num = 3
- Output
- "Wednesday"
Constraints
- 1 <= num <= 7
Hints
Give it a real attempt first. Run shows which examples fail.
Saved automatically
Run checks the 3 visible tests, Submit all 8. ⌘Enter runs, ⌘⇧Enter submits.