about | help | code help+videos | done | prefs |
Write a Python function that gets the current period number and returns it as an integer. Valid period numbers are 1 through 7 inclusive. If the time is not during the school day, then return 0. Passing time should count as part of the next period. NOTE: The hour will be in military time, so an hour of 13 means 1 PM, for example. get_period_number(12, 1) → 5 get_period_number(12, 39) → 5 get_period_number(12, 41) → 5 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy