Check divisibility by 12
Write a Python program to check whether a number is divisible by 12. 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 check whether a number is divisible by 12. Step-by-step explanation, colour-coded code and real output.
Write a Python program that checks whether a value is a float and, if so, rounds it to 2 decimal...
Write a Python program that reads a month name and prints its season (Indian seasons: Winter Dec-Feb, Summer Mar-May, Monsoon Jun-Sep, Post-monsoon...
Write a Python program to check whether a triangle is isosceles (at least two equal sides). Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a triangle is scalene (all three sides different). Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a triangle is equilateral (all three sides equal). Step-by-step explanation, colour-coded code and real output.
Write a Python program to convert a month name to its number of days. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a letter is a consonant. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether a letter is a vowel. Step-by-step explanation, colour-coded code and real output.
Write a Python program that prints "FizzBuzz" for multiples of both 2 and 3, "Fizz" for multiples of 2 and "Buzz" for multiples of 3; otherwise print the...
Write a Python program to check whether a year is a leap year. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate an electricity bill. Units 1-50 cost Rs 0.50, units 51-100 Rs 0.75, units 101-250 Rs 1.25 and units above 250 Rs 1.50...
Take free timed mock tests with answers and explanations.