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

Python External

The document outlines a series of programming tasks in Python, including finding the largest number among three, swapping numbers, printing multiplication tables, and working with strings and dictionaries. It also covers file operations, array manipulations, matrix operations, and class creation for shapes. Additionally, it includes data visualization tasks using matplotlib.

Uploaded by

Divya
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)
2 views1 page

Python External

The document outlines a series of programming tasks in Python, including finding the largest number among three, swapping numbers, printing multiplication tables, and working with strings and dictionaries. It also covers file operations, array manipulations, matrix operations, and class creation for shapes. Additionally, it includes data visualization tasks using matplotlib.

Uploaded by

Divya
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

1.

Write a program to find the largest element among three Numbers


2. Write a program to swap two numbers without using a temporary variable
3. Write a program to print multiplication table of a given number.
4. Write a program to define a function using default arguments.
5. Write a program to check if the substring is present in a given string or not.
6. Write a program to count the number of vowels in a string (No control flow allowed).
7. Write a program to check if a given key exists in a dictionary or not.
8. Write a program to add a new key-value pair to an existing dictionary.
9. Write a program to sum all the items in a given dictionary
10. Python program to print each line of a file in reverse order.
11. Python program to compute the number of characters, words and lines in a file
12. Write a program to create, display, append, insert and reverse the order of the items in the
array.
13. Write a program to add, transpose and multiply two matrices.
14. Write a Python program to create a class that represents a shape. Include methods to calculate
its area and perimeter. Implement subclasses for different shapes like circle, triangle, and
square..
15. Select any two columns from the above data frame, and observe the change in one attribute
with respect to other attribute with scatter and plot operations in matplotlib

You might also like