First 20 natural numbers with while
Write a Python program to print the first 20 natural numbers using a while loop. 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 print the first 20 natural numbers using a while loop. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the keys and values of a dictionary. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the values of a dictionary, capitalised. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the keys of a dictionary using a loop. Step-by-step explanation, colour-coded code and real output.
Write a Python program that adds the odd numbers from 1 to 10 into an empty list. Step-by-step explanation, colour-coded code and real output.
Write a Python program that adds the even numbers from 1 to 10 into an empty list. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print each character of a string on a new line. Step-by-step explanation, colour-coded code and real output.
Write a Python program to display the numbers of a list separated by commas. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the first 20 natural numbers with a for loop, separated by commas. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print the multiplication table of 5 with a for loop. Step-by-step explanation, colour-coded code and real output.
Write a Python program to print stars growing from 1 to 5 and back to 1. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a string contains a digit. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.