Login and get coding
Create a function that takes a username and checks for a valid user:
1. The username is in
2. The user's account has not expired.
3. The user has the
If those 3 conditions are met return
If one of the conditions is not
True, raise an appropriate exception:
Remember to look at the tests for more details. Have fun, keep calm, and code in Python!
309 out of 316 users completed this Bite.
Will you be Pythonista #310 to crack this Bite?
Resolution time: ~45 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 4.54 on a 1-10 difficulty scale.
» Up for a challenge? 💪