Count odd numbers 1 to 100
Write a Python program to count the odd numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program to count the odd numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the even numbers from 1 to 100. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the multiplication table of a number. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the first n terms of the Fibonacci series. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print all perfect numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a number is perfect: the sum of its factors (excluding itself) equals the number, like 28 = 1 + 2 +…
Write a Python program to print all Armstrong numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find all prime factors of a number. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the sum of all prime numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print all prime numbers from 1 to n. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a number is prime using a loop. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate the factorial of a number using a loop. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.