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.
What is the purpose of comments in Python?
Think about what helps programmers understand the code.
How do you declare a variable in Python?
It involves using the equals sign.
What symbol is used to create a single-line comment in Python?
This symbol blocks the rest of the line from being executed.
True or False: In Python, you must declare the data type of a variable before using it.
Consider how variables are assigned in Python.
Create a Python program that takes a user's name and age, then outputs a greeting that includes both.
You need to use both input() and print() functions.
How would you define a student dictionary with the fields: name, age, and subjects they study? Provide an example.
Use key-value pairs and remember lists can be values.
6 more questions in this section. Enroll free to practise them all.
Enroll free