0% found this document useful (0 votes)
5 views1 page

Python Programming Exercises for Beginners

The document outlines a series of Python programming tasks, including swapping variable values, calculating areas of rectangles and circles, converting temperatures, checking odd/even status, and determining multiples of 8. It also includes tasks for printing numbers in descending order, even numbers, summing a range of numbers, calculating averages, and generating multiplication tables. Each task emphasizes user input and the use of loops for various calculations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Python Programming Exercises for Beginners

The document outlines a series of Python programming tasks, including swapping variable values, calculating areas of rectangles and circles, converting temperatures, checking odd/even status, and determining multiples of 8. It also includes tasks for printing numbers in descending order, even numbers, summing a range of numbers, calculating averages, and generating multiplication tables. Each task emphasizes user input and the use of loops for various calculations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Python program

[Link] a program to swap values of two variables using a third


variable.
2. Write a Python program to calculate the area of a rectangle
using user input for the length and the width.
3. Write a Python program to convert temperature input in
Fahrenheit to Celsius. C = 5/9 *(f-32)
4. Write a program to calculate the area of a circle using user
input for the radius.
5. Write a Python program to to check if a given number is odd or
even. Display an appropriate message in either case.
6. Write a Python program to check an input number is a multiple
of 8. Display an appropriate message in either case. The number
is not divisible by 8 then check if the number is divisible by 7. If
so, the program should display the square of the number else.

8. WAP that prints the numbers from 10 to 1 using a for loop.


9. WAP prints the even numbers from 1 to 20 using a for loop.
10. Write a program that prints the sum of numbers from 1 to 50
using for loop.
11. Write a program that takes 10 numbers and print the average
using a while loop.
12. Write a program that prints the multiplication table of a
number using a while loop.

You might also like