Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define a variable named city and assign it a string of your choice.
Remember that variables can store strings.
What data type is the following: 3.14?
Think of decimal numbers.
What is Python primarily used for?
Think about what industries use Python regularly.
True or False: Python is case sensitive.
Consider how you name your variables.
Create a program that simulates a simple voting system where users can input their age and receive feedback if they can vote. Include error handling for invalid inputs.
Think about how to manage invalid inputs and utilize conditionals.
Design a function that takes a list of numbers as input and returns the sum of the even numbers in that list.
Consider using list comprehension for efficiency.
6 more questions in this section. Enroll free to practise them all.
Enroll free