Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
Define a variable in Python to store your name.
Use a string to define your name.
What is the output of print(3 * 'Hello')?
Think about what happens when you multiply a string.
What is Python primarily known for?
Think about what makes Python appealing to beginners.
True or False: In Python, you must declare the variable type explicitly.
Review how Python handles variable types.
Write a Python program that takes user input for their age and provides feedback if they are eligible to vote.
Use an if-else structure to provide the feedback based on the input.
Create a program that generates a list of even numbers from 2 to 20 using a loop.
Use Python’s range function to help generate the even numbers.
6 more questions in this section. Enroll free to practise them all.
Enroll free