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

Python Prac

The document outlines a series of Python programming tasks aimed at beginners. These tasks include user input handling, basic arithmetic operations, data type demonstrations, geometric calculations, and various algorithms such as checking for even/odd numbers and generating Fibonacci series. Additionally, it covers list and dictionary manipulations, providing a comprehensive introduction to fundamental programming concepts in Python.

Uploaded by

Bhavya Jajodia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Python Prac

The document outlines a series of Python programming tasks aimed at beginners. These tasks include user input handling, basic arithmetic operations, data type demonstrations, geometric calculations, and various algorithms such as checking for even/odd numbers and generating Fibonacci series. Additionally, it covers list and dictionary manipulations, providing a comprehensive introduction to fundamental programming concepts in Python.

Uploaded by

Bhavya Jajodia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. Write a Python program to accept user input and display it.

2. Program to perform basic arithmetic operations using variables.


3. Program to demonstrate different data types (int, float, string, bool).
4. Program to find the area and perimeter of:

• Circle
• Rectangle
• Triangle

5. Program to check whether a number is even or odd.


6. Program to find the largest of two numbers.
7. Program to find the largest of three numbers.
8. Program to check whether a year is a leap year.
9. Program to create a simple calculator using if-elif-else.
10. Program to find the sum of first N natural numbers.
11. Program to generate multiplication table of a given number.
12. Program to calculate factorial of a number.
13. Program to check whether a number is prime.
14. Program to print Fibonacci series up to N terms.
15. Program to reverse a string.
16. Program to check whether a string is palindrome.
17. Program to create a list and perform:

• Append
• Insert
• Remove
• Pop

18. Program to accept 10 numbers from user in a list L1 and separate:

• Even numbers in list L2


• Odd numbers in list L3

19. Program to create a dictionary of students with name and marks.


20. Program to display keys, values, and items of a dictionary.

You might also like