Login and get codingWelcome to our Intro Bites, it's time to gauge where you are with your Python!
If you are still new to our platform take a moment to watch our introduction video.
Ready? Let's dive straight in using a very exciting Python feature.
The latest way to print to the screen in Python (>= 3.6) is using
f-strings
.In this Bite we'll get you to calculate whether a person is able to drive or not based on their minimum age which is stored in the constant
MIN_DRIVING_AGE
.Print (not return)
name is allowed to drive
orname is not allowed to drive
(note there is no period (.) at the end), based on the age being equal or greater thanMIN_DRIVING_AGE
.
7609 out of 8708 users completed this Bite.
Will you be Pythonista #7610 to crack this Bite?
Resolution time: ~22 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.67 on a 1-10 difficulty scale.
» You can do it! 😌