print(), input(), and Syntax
-
Calculations
- Write a Python program to input two numbers and print their sum.
- Write a Python program to input two numbers and print their difference.
- Write a Python program to input two numbers and print their product.
- Write a Python program to input two numbers and print their quotient (division result).
- Write a Python program to input the length and breadth of a rectangle and print its area.
- Write a Python program to input the length and breadth of a rectangle and print its perimeter.
- Write a Python program to input the principal amount, rate of interest, and time, then calculate and print the simple interest.
- Write a Python program to input a temperature in Celsius and print its equivalent temperature in Fahrenheit.
- Write a Python program to input three numbers and print their average.
- Write a Python program to input marks of five subjects and print the total marks and percentage.
- Write a Python program to input the radius of a circle and print its area.
- Write a Python program to input the radius of a circle and print its circumference.
- Write a Python program to input a number and print its square.
- Write a Python program to input a number and print its cube.
- Write a Python program to input a number and print half of that number.
- Write a Python program to input a number and print its double and triple values.
- Write a Python program to input the base and height of a triangle and print its area.
- Write a Python program to input the number of days and convert it into weeks and remaining days.
- Write a Python program to input a value in kilometers and convert it into meters.
- Write a Python program to input an amount in rupees and print the amount after adding 18% GST.
Formatted Reports and Receipts
- Write a Python program to generate a student profile using
input()andprint()statements. - Write a Python program to calculate total and average marks of a student and display the result in a formatted report.
- Write a Python program to create a formatted college admission receipt.
- Write a Python program to calculate simple interest and display the result in a formatted statement.
- Write a Python program to print an employee salary slip.
- Write a Python program to generate a formatted train ticket reservation slip using user input and formatted print statements.
- Write a Python program to generate a mobile phone bill using customer details and usage information.
- Write a Python program to create a formatted hospital patient registration card using
input()andprint()statements. - Write a Python program to generate an online shopping invoice using user inputs.
- Write a Python program to generate a formatted movie ticket booking receipt.
- Write a Python program to create a formatted university examination hall ticket using user input.
- Write a Python program to generate a formatted ATM transaction receipt.
- Write a Python program to collect employee project details and generate a formatted project assignment report.
- Write a Python program to generate a formatted airline boarding pass using passenger details.
- Write a Python program to generate a formatted software license registration report using user input.