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 numbers 0 to 4.
💡 Hint: Use the range function for your loop.
Question 2
Easy
Write a while loop to print 'Hello' three times.
💡 Hint: Initialize a counter and condition before the loop.
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 type of loop should be used when the number of iterations is known?
💡 Hint: Think about how you would iterate over a list or range.
Question 2
True or False: A while loop will run forever if the condition is always true.
💡 Hint: Remember to consider the condition of the loop.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Write a program that generates the Fibonacci sequence up to 100 using both for and while loops.
💡 Hint: Remember the Fibonacci sequence starts with 0 and 1.
Question 2
Create a program that accepts user input to keep track of all the numbers entered until a negative number is inputted, then displays the total count and average.
💡 Hint: You'll need both a count and a total to compute the average at the end.
Challenge and get performance evaluation