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.
Declare a variable called fruit and assign it the value 'Mango'. What data type is fruit?
What kind of value does 'Mango' represent?
Create an integer variable called quantity. Assign it a value of 10. What will type(quantity) return?
Integer is represented by whole numbers.
What data type is age = 30?
Think of whole numbers.
The result of type(False) is?
What type represents True or False?
Create a Python program that accepts user input for a temperature in Celsius, converts it to Fahrenheit using the formula F = C * 9/5 + 32, and prints the converted value with its type.
Remember how to convert strings to numbers!
Write a function that receives a string containing a number, converts it into a float, checks if the number is greater than 10, and returns 'High' or 'Low'.
Think about how to use `if` statements with the converted number.
6 more questions in this section. Enroll free to practise them all.
Enroll free