CourseModulePythonTheory-bca
CourseModulePythonTheory-bca
COURSE: BCA
SUBJECT NAME: Programming in Python
SUBJECT CODE: UGCA 1914
SEMESTER: 3rd
CREDIT: 4
CONTACT HOURS: 50 (6-presentation)
COURSE INSTRUCTOR: Ms. Pratiksha Bagga
EMAIL: pratikshabagga@pcte.edu.in
1. The course is designed to provide Basic knowledge of Python. Python programming is intended for software engineers, system analysts,
program managers and user support personnel who wish to learn the Python programming language.
2. To acquire programming skills in core Python.
3. To acquire Object Oriented Skills in Python
Pre-requisites:
Computer Concepts and C Programming, basic knowledge of accessing IDE.
COURSE OUTCOMES
SYLLABUS
SECTION- A
Introduction to Python Programming Language: Programming Language, History and Origin of Python Language, Features of Python,
Limitations, Major Applications of Python, Getting, Installing Python, setting up Path and Environment Variables, Running Python, First Python
Program, Python Interactive Help Feature, Python differences from other languages.
Python Data Types & Input/Output: Keywords, Identifiers, Python Statement, Indentation, Documentation, Variables, Multiple Assignment,
Understanding Data Type, Data Type Conversion, Python Input and Output Functions, Import command.
Operators and Expressions: Operators in Python, Expressions, Precedence, Associativity of Operators, Non-Associative Operators.
SECTION- B
Control Structures: Decision making statements, Python loops, Python control statements.
Python Native Data Types: Numbers, Lists, Tuples, Sets, Dictionary, Functions & Methods of Dictionary, Strings (in detail with their methods
and operations).
SECTION-C
Python Functions: Functions, Advantages of Functions, Built-in Functions, User defined functions, Anonymous functions, Pass by value Vs.
Pass by Reference, Recursion, Scope and Lifetime of Variables.
Python Modules: Module definition, need of modules, creating a module, importing module, Path Searching of a Module, Module Reloading,
Standard Modules, Python Packages.
SECTION- D
Exception Handling: Exceptions, Built-in exceptions, Exception handling, User defined exceptions in Python.
File Management in Python: Operations on files (opening, modes, attributes, encoding, closing), read () & write () methods, tell () & seek ()
methods, renaming & deleting files in Python, directories in Python.
Classes and Objects: The concept of OOPS in Python, designing classes, creating objects, Accessing attributes, Editing class attributes, Built-in
class attributes, Garbage collection, Destroying objects.
REFERENCE BOOKS
1. Programming in Python, Pooja Sharma, BPB Publications, 2017.
2. Core Python Programming, R. Nageswara Rao, 2nd Edition, Dreamtech.3. WebServices Essentials: Distributed Applications with XML-
RPC,SOAP,
EVALUATION CRITERIA
PARAMETER MARKS
MSE ½ 24
Presentation 5
Class Test 5
Attendance 6
Total 40
Attendance Criteria:
Percentage Marks
95 Above 6
91-95 5
86-90 4
81-85 3
76-80 2
75 Below 0
* IT IS ALSO MANDATORY FOR ALL THE STUDENTS TO DELIVER PRESENTATION TO CLEAR INTERNAL
One presentation will be held for the course during the semester. You will be informed well in advance. The rules for presentation are as
follows:
It is compulsory for all the students to deliver the Presentation to clear the Internals.
The presentation will start at 9 AM sharp, so all the students must be seated at the venue by 8.55AM. Attendance will be taken at 8:55 AM,
11:25 AM, 2:15 PM & 4:40 PM. same will be followed on the second day of presentation.
The students will get attendance corresponding to the number of sessions attended by them.
Based on the topic of presentation, a synopsis has to be submitted, discussed in person and approval to be sought before final submission.
Synopsis must include references/source of information at the end.
The various evaluation parameters can be Grooming (including dress code, the way the presenter carries himself/herself), Presentation
Skills (Communication Skills, Body Language, Usage of Well, Usage of Board, Confidence, Audibility), Knowledge of Content, Timely
submission of Synopsis, Presentation report, Query Handling, Questions asked from presenters, Questions answered based on your
presentation, viva based on information gained from the presentation delivered by all other presenters etc.
The sequence of presentation will be decided randomly, so anyone will have equal chance of presentation. No request will be entertained.
All the students must be in strict formals. The girls must wear formal skirt.
Every student should provide 5 MCQs based on his/her presentation and a class test will be conducted based on the MCQs from
selected presentations
The students sitting in the house must ask questions at the end of every presentation.
Any indiscipline (usage of mobile or creating disturbance) during the presentation shall lead to disqualification of presentation and no
awards shall be given.
COURSE PLAN
Introduction to Python
a. Programming Language
1
b. XML Related Technologies
c. Features of Python,
Python
a. Limitations
2
b. Major Applications of Python
Running Python,
a. Keywords,
5
b. Identifiers,
Variables
6 a. Variables, Multiple Assignment,
b. Understanding Data Type
7 Class Task -1
10 a. Operators in Python
b. Expressions
Control Structures:
12
a. Decision making statements
13 Python loops
14 Class Task -2
15 Python loops
Python Functions:
Anonymous functions
20
a. Pass by value Vs. Pass by Reference,
21 Class Task -3
Anonymous functions
22
a. Recursion, Scope and Lifetime of Variables.
Anonymous functions
23
a. Recursion, Scope and Lifetime of Variables.
Python Modules:
b. Module Reloading
Python Modules:
b. Module Reloading
Python Modules:
27 Class Task-4
Exception handling,
Exception handling,
31,32
a. User defined exceptions in Python
36 Class Task-5
41 Revision
42 Revision
43 Revision
44 Revision
Activities Description:
Class Task -1
Write a Python program which accepts the user's first and last name and print them
in reverse order with a space between them
Class Task -2
Write a Python program to count the number of even and odd numbers from a series
of numbers.
Write a Python program that prints all the numbers from 0 to 6 except 3 and 6.
Class Task -3
Write a Python function that takes a number as a parameter and check the number is
prime or not
Class Task – 4
Write a Python program to print the calendar of a given month and year.
Class Task -5
Write a Python program to append text to a file and display the text.
Write a Python program to read a file line by line store it into a variable
Presentation topics