0% found this document useful (0 votes)
13 views3 pages

BCA - Core 2

The document outlines a course on Python programming, detailing objectives such as understanding basic programming concepts and applying skills to real-world applications. It includes a structured curriculum divided into four units covering Python basics, data structures, functions, and object-oriented programming, along with practical lab exercises. Recommended textbooks and resources are also provided for further learning.

Uploaded by

kedarnathdas33
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)
13 views3 pages

BCA - Core 2

The document outlines a course on Python programming, detailing objectives such as understanding basic programming concepts and applying skills to real-world applications. It includes a structured curriculum divided into four units covering Python basics, data structures, functions, and object-oriented programming, along with practical lab exercises. Recommended textbooks and resources are also provided for further learning.

Uploaded by

kedarnathdas33
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/ 3

Core II

Introduction to Python Programming

Course Objectives:

1. To gain a solid understanding of basic programming concepts of Python.


2. To understand and write programs using Python.
3. Apply Python programming skills to develop practical, real-world applications and
projects.

Learning Outcomes:
Upon completion of this course, Students will be able to learn:
• Basics of Python construct.
• Basics of decision making and looping, use of list, set, tuples and dictionary
• Creation and use of functions
• Object-oriented concepts, handling exceptions, operations on files

Unit I:
• Introduction to Python, getting started with Python, Python Basics: Identifiers,
Keywords, Python types, basic types, mutable and immutable types, Integer & float
ranges, Variable type & assignment, Arithmetic Operators, Precedence &
Associativity, Conversions, built-in functions, modules, container types, comments &
indention, multi-lining.

• Strings: Introduction, Accessing String elements, Properties, built-in functions,


Methods, Conversions, Comparisons. Console I/O: I/O operations, formatted printing.

Unit II:
• Decision Control Instruction: Logical operators, Conditional Expressions, all () & any
(), receiving input, pass statement. Repetition Control Instruction: types, usage of
loops, break & continue, else block of a loop.
• Lists, Sets, Tuples, Dictionaries: creating, accessing, and looping-in each type.
Applying basic operations, using built-in functions and methods on each type,
possible data structure / mathematical operations on each type. Comprehensions on
List, Set, and dictionary.

Unit III:
Functions: built-in and user-defined functions, invoking functions, unpacking arguments.
Recursive function, iteration vs recursion. Lambda functions, map, filter, reduce function.
Modules and Packages: Main module, importing a module, packages, programs using
modules and packages.

Unit IV:
• Classes & Objects: Programming paradigms, public and private members, declaring
classes, creating objects, class variables, methods, operator overloading,
containership, features and types of inheritance.
• Exception Handling: Introduction, handling exception, user-defined exceptions, else
block, finally block. File Input/Output: Opening a file, modes of opening a file,
operations: reading, writing. Use of with keyword.

Text Book:
✓ Let us Python by Yashavant Kanetkar & Aditya Kanetkar, BPB Pub.

Reference Books & e-Resources:

✓ Python Programming: Using Problem Solving Approach by Reema Thareja,


Oxford University Press
https://docs.python.org

BCA 2.1 Lab: Introduction to Python Programming

1. Write a program to demonstrate the usage of various arithmetic operators.


2. Write a program that will convert various temperatures.
3. a. Fahrenheit to Centigrade
4. b. Centigrade to Fahrenheit
5. Write a program that will find the roots of a quadratic equation: ax² + bx + c = 0
6. Write a program that demonstrate the usage of various String functions.
7. Write a program that will ask you to enter your name, through keyboard, and perform
following operations
8. a. Find the middle name
9. b. Find the last name (using string slicing)
10. c. Re-write the name with surname first.
11. Write a program to find out whether the integer entered by the user, through the
keyboard, is even or odd number.
12. Find out the youngest among Shyam, Dugu and Ishan whose ages are entered by the
user through keyboard.
13. Given three points (x1, y1), (x2, y2), (x3, y3), write a program to check all the three
points fall on one straight line.
14. Write a program to demonstrate basic operations on the list.
15. Write a program to demonstrate stack and queue operations using a list of numbers.
16. Write a program to ask the data of five students that contain name, roll number, age.
Sort the list based on roll number of the Student. [Note: Use list of lists].
17. Write a program to demonstrate basic operations on the tuple.
18. Store the data about the shares held by the user as tuples containing the following
information about shares: share name, cost price, number of shares, selling price.
Write a program to determine:
a. total cost of the portfolio
b. total amount gained or lost
19. Write a program to demonstrate basic operations on the set.
20. Write a program to demonstrate basic operations on the dictionary.
21. Create a dictionary to store data (name, roll number) of N students. The key will be
the roll number of the student and the value contains the data of the student (in a list).
Write a program that asks the user to enter a name of a Student, search it in the
dictionary and print the data of the Student if it is available otherwise display an
appropriate message.
22. Write a program to demonstrate basic comprehensions on list, set and dictionary.
23. Write a program to find the factorial value of a number entered by the user using
function.
24. Write a program to find the factorial of a number using recursion.
25. Write a program to showcase use of Lambda functions, map, filter, reduce function.
26. Create a Python class called "Student" that encapsulates various attributes of a
student. Implement methods within the class to perform operations utilizing these
attributes.
27. Write a program to demonstrate both Static and Dynamic Polymorphism in Python.
28. Write a program to demonstrate exception handling mechanisms for various types of
exceptions.
29. Write a program to read texts from a file and write them into another file.

You might also like