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

Python File Programs

The document lists various programming tasks and exercises related to Python, covering topics such as variable manipulation, conditional statements, data structures, file handling, and recursion. Each task is designed to help learners practice specific programming concepts and techniques. The exercises range from simple operations to more complex functions, including the use of libraries like NumPy.

Uploaded by

shop.inderjeet
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)
6 views1 page

Python File Programs

The document lists various programming tasks and exercises related to Python, covering topics such as variable manipulation, conditional statements, data structures, file handling, and recursion. Each task is designed to help learners practice specific programming concepts and techniques. The exercises range from simple operations to more complex functions, including the use of libraries like NumPy.

Uploaded by

shop.inderjeet
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

Programs for FILE

Q1. Python, its features, and its application areas


Q2. WAP to swap two variables
Q3. WAP to find the largest among three numbers using if else
Q4. WAP to check if a number is positive, negative or zero using if elif else
Q5. WAP to find the sum, average and length of list of all numbers stored in a list.
Q6. WAP to count the number of even and odd numbers from a series of number
Q7. WAP to find the largest value in a list or sequence
Q8. WAP to concatenate three dictionaries to create a new one
Q9. WAP to map two list into a dictionary
Q10. WAP to print multiplication of table no.9
Q11. WAP to print reverse of number
Q12. WAP to print Fibonacci series
Q13. WAP to print Floyd triangle
Q14. WAP to multiply two matrixes
[Link] to show usage of lambda function
Q16. WAP to find the maximum of three number using function.
Q17. WAP to reverse a string using function
Q18. WAP to calculate the number of upper case and lower-case letters from a given string
Q19. WAP to check whether string is palindrome or not
[Link] to print the Fibonacci sequence using recursion
Q21. WAP to find the factorial using recursion.
Q22. WAP to create python package to show use of modules
Q23. WAP to append data to a text file and display the text
Q24. WAP to write text into file and print
Q25. WAP to count the total number of lines in a text file
Q26. WAP to handle divide by zero exception
Q28. WAP to create and access the elements of NumPy array

You might also like