Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβperfect for learners of all ages.
Enroll to start learning
Youβve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
Declare a variable named 'color' and assign it the value 'blue'. What will be the output of print(type(color))?
π‘ Hint: Remember, strings are enclosed in quotes.
Question 2
Easy
What is the data type of the variable x = 100?
π‘ Hint: Think about whole numbers.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What is a variable in Python?
π‘ Hint: Think of how we store information.
Question 2
Which function would you use to determine the type of a variable?
π‘ Hint: It's a built-in function!
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a program that requests user input for their height as a string, converts it to a float, and outputs whether they are taller than 6 feet. How would you do this?
π‘ Hint: Ensure you convert the string input into a float.
Question 2
You have two variables: temperature = '30' (string) and pressure = 101.5 (float). What would be the result of adding them as integers? Write the code and explain the output.
π‘ Hint: Pay close attention to the types before attempting addition!
Challenge and get performance evaluation