Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
10 views4 pages

Python - Syllabus-B.tech (Group B) 1st & 2nd Sem

The document outlines the curriculum for the Python Programming course for Group B in the 2024-2025 session, detailing six modules covering input/output, control flow, strings, lists, dictionaries, and file handling. It includes a list of practical lab experiments that students must complete, focusing on various programming concepts and techniques. Additionally, it provides references and textbooks for further study in Python programming.

Uploaded by

veggibazaar3
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)
10 views4 pages

Python - Syllabus-B.tech (Group B) 1st & 2nd Sem

The document outlines the curriculum for the Python Programming course for Group B in the 2024-2025 session, detailing six modules covering input/output, control flow, strings, lists, dictionaries, and file handling. It includes a list of practical lab experiments that students must complete, focusing on various programming concepts and techniques. Additionally, it provides references and textbooks for further study in Python programming.

Uploaded by

veggibazaar3
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

Group B 1st & 2nd Sem (SESSION 2024-2025)

Module 1: Input and Output 6 Hrs


Identifiers, Keywords, Statements and Expressions, Variables, Operators, Precedence and
Associativity, Data Types, Indentation, Comments, Reading Input, Print Output, Type
Conversions, The type() Function and Is Operator, Dynamic and Strongly Typed Language
Module 2: Control Flow statements, Function and Loops 6 Hrs
Control Flow Statements, The if Decision Control Flow Statement, The if…else Decision
Control Flow Statement, The if…elseif…else Decision Control Statement, Nested if
Statement, Built-InFunctions, Commonly Used Modules, Function Definition and Calling
the Function, The return Statement and void Function, Scope and Lifetime of Variables,
Default Parameters, The while Loop, The for Loop, The continue and break Statements.
Module 3:Strings 3 Hrs
Creating and Storing Strings, Basic String Operations, Accessing Characters in String by
Index Number, String Slicing and Joining, String Methods, Formatting Strings.

Module 4 : Lists 3 Hrs


Creating Lists, Basic List Operations, Indexing and Slicing in Lists, Built-In Functions Used
on Lists, List Methods, The del Statement.
Module 5:Dictionaries, Tuples and Sets 5 Hrs
Creating Dictionary, Accessing and Modifying key value Pairs in Dictionaries, Built-In
Functions Used on Dictionaries, Dictionary Methods, The del Statement, Tuples and Sets,
Creating Tuples, Basic Tuple Operations, Indexing and Slicing in Tuples, Built-In Functions
Used on Tuples, Relation between Tuples and Lists, Relation between Tuples and
Dictionaries, Tuple Methods, Using zip() Function, Sets, Set Methods, Traversing of Sets,
Frozen set.
Module 6: Files 5Hrs
Types of Files, Creating and Reading Text Data, File Methods to Read and Write Data,
Reading and Writing Binary Files, The Pickle Module, Reading and Writing CSV Files,
Python os and os.path Modules.
Test/ Reference:-
1. Introduction to Python Programming, Gowrishankar S, Veena A ,1st Edition, CRC
Press/Taylor & Francis, 2018. ISBN-13: 978-0815394372
2. Python Data Science Handbook: Essential Tools for Working with Data, Jake
VanderPlas, 1st Edition, O'Reilly Media, 2016. ISBN-13: 978-1491912058
3. Core Python Applications Programming, Wesley J Chun, 3rd Edition, Pearson
Education India, 2015. ISBN-13: 978-9332555365
4. Python Programming A Modular Approach, SheetalTaneja, Pearson Publications
5. Programming and Problem Solving with Python, Ashok NamdevKamathane and
Amit Ashok Kamathane Tata McGraw Hill Education (India) Private Limited

Course Code-100218P Python Programming Lab


Group B 1st & 2nd Sem (SESSION 2024-2025)

L-T-P: 0-0-2 Credit: 1


List of Experiments-
S.No. Name of program
Input and Output
1 Write a program to demonstrate different number data types in Python.
2 Write a program to perform different Arithmetic Operations on numbers in Python.
3 Write a program to create, concatenate and print a string and accessing sub-string
from a given string.
4 Create a variable "number" and assign an Integer to the number. Check the assigned
Integer is "Positive" or "Negative".
5 Write a program to find the largest element among three Numbers.
6 Write a program to print the sum of all the even numbers in the range 1 - 50 and
print the even sum.
7 Write a Program to display all prime numbers within an interval of 20 and 50.
Variables and Functions
8 Write a program to swap two numbers without using a temporary variable.
9 Write a program to define a function with multiple return values.
10 Write a python program to find factorial of a number using Recursion.
11 Write a python script to print the current date in the following format ―WED
09 02:26:23 IST 2020‖.
12 Write a Python program to convert temperatures to and from Celsius,
Fahrenheit [Formula: c/5 = f-32/9].
13 Write a Python script that prints prime numbers less than 20.
Loops and Conditionals
14 Write a program to print the following patterns using loop:
*
**
***
****
15 Write a program to print multiplication tables of 8, 15, 69.
16 Write a program to check whether the given input is digit or lowercase character or
uppercase character or a special character (use 'if-else-if' ladder).
17 Write a python Program to print the Fibonacci sequence using while loop.
Strings
18 Write a program to find the length of the string without using any library functions.
19 Write a program to check if two strings are anagrams or not.
20 Write a program to check if the substring is present in a given string or not. (use
regular expressions)
Lists
21 Write a program to perform the given operations on a list:
i. add ii. Insert iii. slicing
22 Write a program to perform any 5 built-in functions by taking any list.
23 Write a program to get a list of the even numbers from a given list of numbers.(use
only comprehensions).
24 Write a program to implement round robin.
Note: This routine to take a variable number of sequences and return elements from
them in round robin till each sequence is exhausted. If one of the input sequences is
infinite, this is also infinite. e.g. if input is [1,2,3], (4,5) -> yield 1,4,2,5,3 one after
the other. Use exception control and comprehensions to write elegant code. Hint:
This requires you to understand variable arguments, lists, list copy, comprehensions,
iterators, generators, exception handling, control flow etc.
Group B 1st & 2nd Sem (SESSION 2024-2025)

Tuples
25 Write a program to create tuples (name, age, address, college) for at least two
members and concatenate the tuples and print the concatenated tuples.
26 Write a program to return the top 'n' most frequently occurring chars and their
respective counts.
e.g. aaaaabbbbcccc, 2 should return [(a 5) (b 4)]
Sets
27 Write a program to count the number of vowels in a string (No control flow
allowed).
28 Write a program that displays which letters are present in both strings.
29 Write a program to sort given list of strings in the order of their vowel counts.
Dictionaries
30 Write a program to generate a dictionary that contains numbers (between 1 and n) in
the form of (x, x*x).
31 Write a program to check if a given key exists in a dictionary or not.
32 Write a program to add a new key-value pair to an existing dictionary.
33 Write a program to sum all the items in a given dictionary.
Files
34 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. (Handle exceptions)
35 Write a program to find the most frequent words in a text. (read from a text file).

Additional Programs:
1. Write a program to check whether a given number has an even number of 1's in its
binary representation (No control flow allowed).
2. Write a program to implement user defined map() function.
3. Write a program to return a list in which duplicates are removed and the items are
sorted from a given input list of strings.
4. Write a program to implement left binary search.
5. Write a program to change days to hours, hours to minutes and minutes to seconds
using currying of composition of functions.
6. Write a program to generate an infinite number of even numbers (Use generator)
7. Write a program to convert a given iterable into a list. (Using iterator)
8. Write a program that accepts a sequence of whitespace separated words as input and
prints the words after removing all duplicate words and sorting them
alphanumerically.

TextBooks:
1. Y. Daniel Liang, Introduction to programming using Python, 1st Edition,Pearson
Publications, 2017.
2. Sheetal Taneja, Python Programming A Modular Approach ,1st Edition Pearson
Publications, 2017.
3. Brett Slatkin (C), Effective Python: 59 Specific Ways to Write Better Python, I/C,
1st Edition Pearson Publications, 2015.
Group B 1st & 2nd Sem (SESSION 2024-2025)

4. Ashok Namdev Kamathane and Amit Ashok Kamathane, Programming and Problem
Solving with Python , 1st Edition, McGraw Hill Education (India) Private Limited,
2017.

REFERENCE BOOKS:
1. Python Programming: A Modern Approach, Vamsi Kurama, Pearson
2. Python Programming A Modular Approach with Graphics, Database, Mobile, and
Web Applications, Sheetal Taneja, Naveen Kumar, Pearson
3. Programming with Python, A User’s Book, Michael Dawson, Cengage Learning,
India Edition
4. Think Python, Allen Downey, Green Tea Press
5. Core Python Programming, W. Chun, Pearson
6. Introduction to Python, Kenneth A. Lambert, Cengage

You might also like