4.5 - Basic Programming Concepts
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
Define a variable named height and assign it the value of 170.
💡 Hint: Remember to use the equals sign.
What is the data type of the value 3.5?
💡 Hint: Consider whether the number has a decimal or not.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is a variable?
💡 Hint: Think about what it's like to have a labeled box for storing information.
What data type would you use for the age of a person?
💡 Hint: Consider the types of numbers age can represent.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Write a program that takes multiple inputs (name, age, city) from a user and print a formatted message introducing the user.
💡 Hint: Remember to use f-strings for formatted output!
Create a program that prompts for two numbers and finds their sum, difference, product, and quotient. Handle division by zero gracefully.
💡 Hint: Use conditional statements to avoid errors when dividing.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.