0% found this document useful (0 votes)
31 views

Python Programming External Lab

Uploaded by

balugopalam616
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)
31 views

Python Programming External Lab

Uploaded by

balugopalam616
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
You are on page 1/ 4

SET-1

1. Write a program to add and multiply complex numbers.


2. Select any two columns from the above data frame, and observe the
change in one.

SET-2
1. Write a program to print multiplication table of a given number.
2. Create a dictionary with at least five keys and each key represent
value as a list where this list contains at least ten values and
convert this dictionary as a panda’s data frame and explore the
data through the data frame as follows:
a) Apply head () function to the panda’s data frame.
b) Perform various data selection operations on Data Frame.

SET-3

1. Write a program to define a function with multiple return values.


2. Python program to find min, max, sum, cumulative sum of array.

SET-4

1. Write a program to define a function using default arguments.


2. Python program to demonstrate basic slicing, integer and Boolean
indexing.
SET-5

1. Write a program to find the length of the string without using any
library functions.
2. Python program to demonstrate use of ndim, shape, size, dtype.

SET-6

1. Write a program to check if the substring is present in a given


string or not.
2. Python Program to demonstrate NumPy arrays creation using
array () function.

SET-7

1.Write a program to perform the given operations on a list:


i. addition ii. Insertion iii. slicing
2.Python program to check whether a JSON string contains complex
object or not.

SET-8
1. Write a program to perform any 5 built-in functions by taking any
list.
2. 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.

SET-9

1.Write a program to create tuples (name, age, address, college) for


at least two members and concatenate the tuples and print the
concatenated tuples.
2.Write a program to add, transpose and multiply two matrices.

SET-10

1.Write a program to count the number of vowels in a string (No


control flow allowed).
2.Write a program to create, display, append, insert and reverse the
order of the items in the array.

SET-11
1.Write a program to check if a given key exists in a dictionary or not.
2.Python program to compute the number of characters, words and
lines in a file.

SET-12

1.Write a program to add a new key-value pair to an existing


dictionary.
2.Python program to print each line of a file in reverse order.

SET-13

1. Write a program to sum all the items in a given dictionary.


2. Write a program to sort words in a file and put them in another file.
The output file should have only lower-case words, so any upper-
case words from source must be lowered.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy