print(), input(), and Syntax

  1. Calculations

    1. Write a Python program to input two numbers and print their sum.
    2. Write a Python program to input two numbers and print their difference.
    3. Write a Python program to input two numbers and print their product.
    4. Write a Python program to input two numbers and print their quotient (division result).
    5. Write a Python program to input the length and breadth of a rectangle and print its area.
    6. Write a Python program to input the length and breadth of a rectangle and print its perimeter.
    7. Write a Python program to input the principal amount, rate of interest, and time, then calculate and print the simple interest.
    8. Write a Python program to input a temperature in Celsius and print its equivalent temperature in Fahrenheit.
    9. Write a Python program to input three numbers and print their average.
    10. Write a Python program to input marks of five subjects and print the total marks and percentage.
    11. Write a Python program to input the radius of a circle and print its area.
    12. Write a Python program to input the radius of a circle and print its circumference.
    13. Write a Python program to input a number and print its square.
    14. Write a Python program to input a number and print its cube.
    15. Write a Python program to input a number and print half of that number.
    16. Write a Python program to input a number and print its double and triple values.
    17. Write a Python program to input the base and height of a triangle and print its area.
    18. Write a Python program to input the number of days and convert it into weeks and remaining days.
    19. Write a Python program to input a value in kilometers and convert it into meters.
    20. Write a Python program to input an amount in rupees and print the amount after adding 18% GST.

    Formatted Reports and Receipts 

    1. Write a Python program to generate a student profile using input() and print() statements.
    2. Write a Python program to calculate total and average marks of a student and display the result in a formatted report.
    3. Write a Python program to create a formatted college admission receipt.
    4. Write a Python program to calculate simple interest and display the result in a formatted statement.
    5. Write a Python program to print an employee salary slip.
    6. Write a Python program to generate a formatted train ticket reservation slip using user input and formatted print statements.
    7. Write a Python program to generate a mobile phone bill using customer details and usage information.
    8. Write a Python program to create a formatted hospital patient registration card using input() and print() statements.
    9. Write a Python program to generate an online shopping invoice using user inputs.
    10. Write a Python program to generate a formatted movie ticket booking receipt.
    11. Write a Python program to create a formatted university examination hall ticket using user input.
    12. Write a Python program to generate a formatted ATM transaction receipt.
    13. Write a Python program to collect employee project details and generate a formatted project assignment report.
    14. Write a Python program to generate a formatted airline boarding pass using passenger details.
    15. Write a Python program to generate a formatted software license registration report using user input.
Previous Topic Installing Python & IDEs Next Topic Variables and Data Types