0% found this document useful (0 votes)
8 views2 pages

PP Lab

The document outlines a Python Programming Laboratory course for B.Tech (ECE) II Semester students, detailing a list of experiments and programming tasks to be completed. It includes exercises on basic Python syntax, data structures, file handling, and GUI applications, along with references and textbooks. The course aims to equip students with practical skills in Python programming and object-oriented concepts.

Uploaded by

phonelost740
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)
8 views2 pages

PP Lab

The document outlines a Python Programming Laboratory course for B.Tech (ECE) II Semester students, detailing a list of experiments and programming tasks to be completed. It includes exercises on basic Python syntax, data structures, file handling, and GUI applications, along with references and textbooks. The course aims to equip students with practical skills in Python programming and object-oriented concepts.

Uploaded by

phonelost740
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

B.

Tech (ECE) R25

(A505507) PYTHON PROGRAMMING LABORATORY


(Comrnon to A11)

LTPC
[Link] (ECE): II Semester 0021

List of Experiments:
l.
information
I. Use a web browser to go to the Python website [Link] This page contains
about python and links to Python-related pages, and it gives you the ability to search the Python
documentation.
II. Starl the pyhon interpreter and type help0 to start the online help utility.
1. Start aPython interpreter and use it as a Calculator'
given'
2. Write a program to calculate compound interest when principal, rate and number of periods are
Read the name, address, email and phone [Link] ofa person through the keyboard and
print the details'
3.
4. Print the below triangle using for loop'
5
44
aaa
JJJ

2222
llll1
or
5. Write a program to check whether the given input is digit or lowercase character or uppercase character
a special character(use 'if-else-if ladder)
6. Python program to print all prime numbers in a given intervai (use break)
7. Write a program to conved a list and tuple into arrays'
8. Write a program to find common values between two alrays'
g. Write a function called palindrome that takes a string argument and returnsTrue if it is a palindrome
and

False otherwise. Remember that you can use the built-in function len to check the length of a string.

10. Write a function called is_sorted that takes a list as a parameter and returns True if the list is sorted
in

ascending order and False otherwise.


11. Writeafunctioncalledhas_duplicatesthattal<esalistandreturnsTrueifthereisanyelementthatappears
more than once. [t should not rnodify the original list'
12. Write a function called renove-duplicates that takes a list and returns a new list with only the unique
elements from the original. Hint: tlrey don't have to be in the same order.
13. The wordlist I provided, [Link], doesn't contain single letter words. So you might want to add
"I", "a",
and the emPtY string.
14. Write a python code to read dictionary values frorn the user. Construct a function to inveft its content. i.e.,
keys should be values and values should be keys.
I5. Addacommabetweenthecharacters. Ifthegivenwordis'Apple',itshouldbecome'A,p,p,l,e'
16. Rernove the given word in all the places in a string?
with
17. Write a function that takes a sentence as an input parameter and replaces the first lette r of every word
the corresponding upper case letter and the rest of the lefters in the word by corresponding letters
in

lower case without using a built-in function?


18. Writes a recursive function that generates all binary strings of n-bit length
19. Write a python program that defines a matrix and prints
20. Write a python program to perfonn multiplication of two square lnatrices
21. How do you make a module? Give an example of construction of a module using different geometrical
shapes and operations on them as its functions.
22. lJsethe structure ofexception handling all general-purpose exceptions.
draws
23. Write a function called draw_rectangle that takes a Canvas and a Rectangle as arguments and
a

representation ofthe Rectangle on the Canvas


Page35
CMR Coilege ol Engineering & Technology [Autonomous)
[Link] (ECE) R25

objects ancl modifl draw-rectangle so that it uses the color


24. Addan attribute named color to your Rectangle
attribute as the filI color'
and Point as arguments and draws a representation
25. write a function called draw-point that takes a canvas
a

ofthe Point on the Canvas'


[Link]
on the canvas'
function called draw-circle that draws circles
email-id from the user and validate it for correctness'
27. write a python cod. to read a phone number and
contents into a third file'
28. Write a Py'thon code to tnerge two given file
[Link]
displaY on found'
30. writeaPythoncodetoReadtextfrot.l1atextfile,findthewordwithmostnumberofoccurrences blank spaces'
displays the number of words' number of vowels'
31 . Write a function that reads a [Link] t and
lower case letters and uppercase letters'
their functionalities'
32. Import numpy, Plotpy and Scipy and explore
pip explore it'
33. lnstall NumPypackage with and
AND' OR' NOT' EX-OR
34. Write a program to implement Digital Logic Gates -
having two text labels' two text fields and two buttons
as
35. write a GUI program to create a window wizard
Submit and Reset.

TEXT BOOKS:
next level' Overland
1. Supercharged Python: Take your code to the
2. Learning Python, Mark Lutz, O'reilly

REF'ERENCE BOOKS:
l(urama' Pearson
1. Python Programming: A Modern Approach' Vamsi
[Link],Database'Mobile'andwebApplications'
Sheetal Taneja, Naveen l(umar, Pearson
[Link]'GowrishakarS'VeenaA'CRCPress
Dawson, Cengage Learning, India Edition
4' Programming with Pytlrorr, A User,s Book, Miclrael
Wiley publications
5. Python for Data Science, Dr' Mohd Abdul Harneed'
Rao' Dreamtech press
6. Core Python Programming, Dr' R' Nageswara
7. Introduction to Python, Gowrishankar S' Veena
A'' CRC Press

Course Outcomes: The student will learn to


and string operations'
1. Understand and apply basic Plthon syntax, data types, control structures' like lists, tuples, dictionaries,
2. Develop Python programs using functions, recursion, and data structures
and araYs.
and GUI applications using Python modules and
3. Implement object-oriented programming concepts
Tkinter.
including reading, writing, searching, and analyzing
4. Perform file handling and text processing operations
textual data.
and design logic-based applications including
Utilize scientific libraries (NumPy, SciPy' Matplotlib)
digital gates and GUI tools.
2. CO-PO
PO7 PO8 PO9 PO10 PO11 PSOI PSO2
POl PO2 PO3 PO4 PO5 PO6
a 2 2 2
,2
2 ., 2 2 1

co1 2 2,
1
2 1 1 2 3
co? 3 2
I 2 2 2
s -) .l 1
co3 2 2
n J 2 2
co4 I
2 2 2 3 2
a 2 3
co5 2

(AutonomousJ Page36
CMR College of Engineering & T echnologY

You might also like