Write a Program to Check Whether a Number is Even or Odd

In Python Program, if you want to check that a number if even or odd. To do this, divide the number being tested into two equal halves; then count the number of numbers left over after dividing to test whether they are even or odd. If there is an equal amount of numbers as there … Read more

How to Get Current Date and Time in Python

In This Tutorials How to Get Current date and Time in Python with an example. so we see Below as Example. Python Program to Get Current Date and Time Here See the python source code as example which calculate the current date and time. from datetime import date today = date.today() print(“Current Date = “, … Read more

Python Program to Calculate Electricity Bill with Source Code

In This Tutorials how to calculate  to Calculate Electricity Bill with an example. Python Program to find Electricity Bill with source code In this example how to find Electricity Bill in  python with usage to meter reading. Python Program to Calculate Electricity Bill units = int(input(” Please enter Number of Units you Consumed : “)) … Read more

Python Program to find cube of a number

In this tutorial, We learn to Python Program to find cube of a number with example. Python program to find cube of a number Written below to  find cube of a number in python. # Owner : Pythonsourcecode.com Author : Pushpam abhishek number = int(input(“Enter the number: “)) cube = number ** 3 print(“The cubed … Read more

Calendar Program in Python With Example

In this tutorial, We learn to Write a Python Program to Print the calendar of a given month and year with example. Python Calendar Program  Example In this program we show the program to display the Calendar. import calendar year = int(input(“Please Enter the year Number: “)) month = int(input(“Please Enter the month Number: “)) … Read more

Write a python program to perform arithmetic operations With Example

This Python program allows the user to input two numeric values of data type float (a number with a decimal point). The program then performs arithmetic operations on those numbers by allowing the user to choose from various commands, including “add” (to add one number to another), and “mod” (to find the modulus of one … Read more

Write a python program to multiply two numbers

  In this tutorial, we are shown the Write a Python program to multiply two numbers Numbers. Here is The Example to multiply the two numbers.and more easy to run this code for any IDE. num1 = int(input(“Please Enter the First Number to Multiply = “)) num2 = int(input(“Please Enter the second Number to Multiply … Read more

Verified by MonsterInsights