Convert decimal to binary
Write a Python program to convert a decimal number to binary. 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 convert a decimal number to binary. Step-by-step explanation, colour-coded code and real output.
Write a Python program to get the current date (and time). Step-by-step explanation, colour-coded code and real output.
Write a Python program to generate a random string of a specific length. Step-by-step explanation, colour-coded code and real output.
Write a Python program to generate random numbers. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether two words are anagrams: one is a rearrangement of all the letters of the...
Write a Python program to check whether a year is a leap year: divisible by 4, except century years, which must be divisible by...
Write a Python program to check whether a number is prime (greater than 1 and divisible only by 1 and...
Write a Python program to calculate compound interest. Amount = P × (1 + R/100)ᵀ and interest = amount −...
Write a Python program to check whether a number is a palindrome (reads the same backwards, like...
Write a Python program to print the Fibonacci series between 0 and 50. Each number is the sum of the two before...
Write a Python program to reverse the digits of a number. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the factorial of a number. n! = 1 × 2 × ... × n, and 0! = 1. Step-by-step explanation, colour-coded code…
Take free timed mock tests with answers and explanations.