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 code snippet to take two numbers as input and print their sum.
π‘ Hint: Use `int(input())` to convert input to integers.
Question 2
Easy
What is the output when you input 5 and 3 in the sum program?
π‘ Hint: Add the two numbers together.
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 purpose of the input()
function in Python?
π‘ Hint: Think about what the program needs to function.
Question 2
True or False: The modulo operator (%) is used to find the remainder after division.
π‘ Hint: Recall how division works and what remainder means.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Write a program that continuously asks for numbers from the user and reports their sum until the user types 'stop'.
π‘ Hint: Remember to initialize your sum variable before the loop.
Question 2
Create a program that checks if a number is prime.
π‘ Hint: A prime number has exactly two positive divisors: 1 and itself.
Challenge and get performance evaluation