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 fruit and assign it the value 'Mango'. Print its type.
π‘ Hint: Use a string in quotes.
Question 2
Easy
Create an integer variable for quantity and print it.
π‘ Hint: Numbers without quotes are integers.
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 the correct way to declare an integer variable in Python?
π‘ Hint: Look for the option that follows the variable assignment syntax.
Question 2
Is the type() function used to determine the data type of a variable?
π‘ Hint: Recall how we use type() in examples.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Write a Python script that prompts the user for their name, age, and favorite temperature. Store these in variables, convert the age into an integer, and print all values along with their types.
π‘ Hint: Remember to use input() to collect user data.
Question 2
Create three variables for a car's brand, model year, and is_electric status. Print each variable's value and type. Then, change the brand and is_electric values and print them again.
π‘ Hint: Think about how to change the variable values and re-print them.
Challenge and get performance evaluation