Write a Python Program to Calculate Profit or Loss

In this python program, we discuss the calculated profit or loss. To Calculate Profit or Loss using Elif Statement In this python program, the user enters the sale amount and actual cost of the product. then calculate the loss amount and profit amount using the elif statement. # Python Program to Calculate Profit or Loss … Read more

Python Program to Print Positive Numbers in a Range

In this python program, we discuss writing a Python Program to Print Positive Numbers in a Range. and in this program, the example allows start and end numbers and prints the Positive numbers within that range. Write a Program to Print Positive Numbers in a Range In this example, we discuss Print Positive Numbers in … Read more

Python Program to Print All Negative Numbers in a Range

In this python program, we discuss writing a python program to print all Negative numbers in a range. and in this program, the example allows start and end numbers and prints the negative numbers within that range. minimum = int(input(“Enter the Minimum Number = “)) maximum = int(input(“Enter the Maximum Number = “)) print(“\nAll Negative … Read more

Write a Python Program to Calculate Cube of a Number

This tutorial will discuss Write a Python Program to Calculate Cube of a Number in this tutorial. In this python program, we will learn the Calculate Cube of a Number concept in the python language. Calculate the Cube of a Number in the Python Program In this python program, we discuss Python Program to Calculate … Read more

Write a Python Program to Calculate Compound Interest

In this tutorial, we will discuss Write a Python Program to Calculate Compound Interest and this python program we are going to learn the concept of Calculate Compound Interest in the python language. Python Program to Calculate Compound Interest. Let’s begin by writing a Python program to determine compound interest. In the below example, we … Read more

Write a Python Program to Calculate Simple Interest

In this tutorial, we will discuss Write a Python Program to Calculate Simple Interest and this python program we are going to learn the concept of Calculate Simple Interest in the python language. Python Program to Calculate Simple Interest In this python program to calculate the Simple Interest. princ_amount = float(input(” Please Enter the Principal … Read more

Python Program To Print Even and Odd numbers from 1 to 100

In this tutorial, we will discuss python program to print even and odd numbers from 1 to 100  and this python program we are going to learn the concept of print even and odd number form 1 to 100 in the python language. Print even numbers between 1 to 100 using a for loop we … Read more

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

Verified by MonsterInsights