1.1 - Learning Objectives
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.
Practice Questions
Test your understanding with targeted questions
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.
What is the data type of the variable x = 100?
💡 Hint: Think about whole numbers.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is a variable in Python?
💡 Hint: Think of how we store information.
Which function would you use to determine the type of a variable?
💡 Hint: It's a built-in function!
1 more question available
Challenge Problems
Push your limits with advanced challenges
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.
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!
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.