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
Write a for loop to print each number in the list [1, 2, 3].
π‘ Hint: Remember, you need to iterate through the list.
Question 2
Easy
What does len(fruits)
return if fruits
is ['apple', 'banana', 'cherry']?
π‘ Hint: Think about how many fruits are in the list.
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 does a for loop do?
π‘ Hint: Think about when you want to perform an action for each item.
Question 2
True or False: A while loop must have a condition that evaluates to false to stop executing.
π‘ Hint: Imagine it like a door that stays open while the light is on.
Solve and get performance evaluation
Push your limits with challenges.
Question 1
Create a program that uses a while loop to ask for input until the user types 'quit', printing each input back.
π‘ Hint: Think about how to prompt for input continually.
Question 2
Write a function that accepts a list of integers and returns a new list containing only the even numbers, using a for loop.
π‘ Hint: Remember to check each number's remainder when divided by 2.
Challenge and get performance evaluation