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 does the int data type represent?
Think about numbers without any decimal points.
How would you define a string in Python?
Consider how you can use quotes in programming.
Which of the following is a numeric data type in Python?
Think about what type of number doesn't have decimals.
True or False: In Python, a string is mutable.
Can you change a string directly once it's been created?
Create a Python function that takes a string input and returns its reversed form.
Think about how you can slice a string to reverse it.
Write a Python code snippet that defines a list of at least five countries and then converts it into a dictionary with the country names as keys and their capitals as values.
Consider how you can use `zip()` to combine two lists.
5 more questions in this section. Enroll free to practise them all.
Enroll free