- Familiarization with the basics of Python Programming: Introduction to Python, features of Python, executing a simple “hello world” program, execution modes: interactive mode and script mode, Python character set, Python tokens (keyword, identifier, literal, operator,punctuator), variables, concept of l-value and r-value, use of comments
- Knowledge of data types: number (integer, floating point, complex), boolean, sequence (string,list, tuple), none, mapping (dictionary), mutable and immutable data types
- Operators: arithmetic operators, relational operators, logical operators, assignment operator, augmented assignment operators, identity operators (is, is not), membership operators (in, not in)
- Expressions, statement, type conversion & input/output: precedence of operators, expression, evaluation of expression, python statement, type conversion (explicit & implicit conversion), accepting data as input from the console and displaying output
- Errors: syntax errors, logical errors, runtime errors
- Flow of control: introduction, use of indentation, sequential flow, conditional and iterative flow control
- Conditional statements: if, if-else, if-elif-else, flowcharts, simple programs: e.g.: absolute value, sort 3 numbers and divisibility of a number
- Iterative statements: for loop, range function, while loop, flowcharts, break and continue statements, nested loops, suggested programs: generating pattern, summation of series, finding the factorial of a positive number etc
- Strings: introduction, indexing, string operations (concatenation, repetition, membership & slicing), traversing a string using loops, built-in functions: len(), capitalize(), title(), lower(), upper(), count(), find(), index(), endswith(), startswith(), isalnum(), isalpha(), isdigit(), islower(), isupper(), isspace(), lstrip(), rstrip(), strip(), replace(), join(), partition(), split()
- Lists: introduction, indexing, list operations (concatenation, repetition, membership & slicing), traversing a list using loops, built-in functions: len(), list(), append(), extend(), insert(), count(), index(), remove(), pop(), reverse(), sort(), sorted(), min(), max(), sum(); nested lists, suggested programs: finding the maximum, minimum, mean of numeric values stored in a list; linear search on list of numbers and counting the frequency of elements in a list
- Tuples: introduction, indexing, tuple operations (concatenation, repetition, membership & slicing), built-in functions: len(), tuple(), count(), index(), sorted(), min(), max(), sum(); tuple assignment, nested tuple, suggested programs: finding the minimum, maximum, mean of values stored in a tuple; linear search on a tuple of numbers, counting the frequency of elements in a tuple
- Dictionary: introduction, accessing items in a dictionary using keys, mutability of dictionary (adding a new item, modifying an existing item), traversing a dictionary, built-in functions: len(), dict(), keys(), values(), items(), get(), update(), del(), clear(), fromkeys(), copy(), pop(), popitem(), setdefault(), max(), min(), count(), sorted(), copy(); suggested programs : count the number of times a character appears in a given string using a dictionary, create a dictionary with names of employees, their salary and access them
- Introduction to Python modules: Importing module using ‘import ‘ and using from statement, Importing math module (pi, e, sqrt, ceil, floor, pow, fabs, sin, cos, tan); random module (random, randint, randrange), statistics module (mean, median, mode)
- Functions: types of function (built-in functions, functions defined in module, user defined functions), creating user defined function, arguments and parameters, default parameters, positional parameters, function returning value(s), flow of execution, scope of a variable (global scope, local scope)
- Introduction to files, types of files (Text file, Binary file, CSV file), relative and absolute paths
- Text file: opening a text file, text file open modes (r, r+, w, w+, a, a+), closing a text file, opening a file using with clause, writing/appending data to a text file using write() and writelines(), reading from a text file using read(), readline() and readlines(), seek and tell methods, manipulation of data in a text file
- Binary file: basic operations on a binary file: open using file open modes (rb, rb+, wb, wb+, ab, ab+), close a binary file, import pickle module, dump() and load() method, read, write/create, search, append and update operations in a binary file
- CSV file: import csv module, open / close csv file, write into a csv file using csv.writerow() and read from a csv file using csv.reader( )
- Data Structure: Stack, operations on stack (push & pop), implementation of stack using list
- Interface of python with an SQL database: connecting SQL with Python, performing insert, update, delete queries using cursor, display data by using fetchone(), fetchall(), rowcount, creating database connectivity applications
- Introduction to Python libraries- Pandas, Matplotlib.
- Data structures in Pandas – Series and Data Frames.
- Series: Creation of Series from – ndarray, dictionary, scalar value; mathematical operations; Head and Tail functions; Selection, Indexing and Slicing.
- Data Frames: creation – from dictionary of Series, list of dictionaries, Text/CSV files; display; iteration; Operations on rows and columns: add, select, delete, rename; Head and Tail functions; Indexing using Labels, Boolean Indexing;
- Importing/Exporting Data between CSV files and Data Frames.
- Data Visualization Purpose of plotting; drawing and saving following types of plots using Matplotlib – line plot, bar graph, histogram Customizing plots: adding label, title, and legend in plots
BCA CTIS KU SYLLABUS
CATEGORY : (Programming Language Course)
Course Objectives:
- To understand the issues involved in programming language design and implementation.
- To have an in-depth understanding of functional, logic, and object-oriented programming paradigms.
- Understand design/implementation issues involved with variable allocation and binding, control flow, types, subroutines, parameter passing.
- To develop an understanding of the compilation and storage process.
Unit I
Introduction to Python, features, Character set, tokens (keyword, identifier, literal, operator, punctuator), variables, concept of l-value and r-value, use of comments, Data types: number (integer, floating point, complex), boolean, sequence (string, list, tuple), None, mapping (dictionary), mutable and immutable data types.
Operators: arithmetic operators, relational operators, logical operators, assignment operator, augmented assignment operators, identity operators (is, is not), membership operators (in, not in), precedence of operators, Expressions, evaluation of expression, type conversion (explicit & implicit conversion).
Click on any topic to read about the topic.
Unit II
Lists: introduction, indexing, list operations , traversing a list using loops, built-in functions. Tuples: introduction, indexing, tuple operations, built-in functions. Dictionary: introduction, accessing items in a dictionary using keys, mutability of dictionary, traversing a dictionary, built-in functions. Strings: introduction, indexing, string operations, traversing a string using loops, built-in functions. Conditional statements: if, if- else, if-elif-else. Iterative statements: for loop, range function, while loop, break and continue statements, nested loops.
Click on any topic to read about the topic.
Unit III
Introduction to Python modules: Importing module using ‘import <module>’ and using from statement, importing math module, random module. Functions: types of function (built-in functions, functions defined in module, user defined functions), creating user-defined function, arguments and parameters, default parameters, positional parameters, function returning value(s),scope of a variable (global scope, local scope)
Click on any topic to read about the topic.
Unit IV
Introduction to files, types of files (Text file, Binary file, CSV file), relative and absolute paths, file modes, Text file: open, close, reading, writing/appending data to a text file, seek and tell methods. Binary file: open, close, read, write/create, search, append and update operations in a binary file, CSV file: open / close read and write into a csv file
Click on any topic to read about the topic.
TEXT /REFERENCE BOOKS:
- E. Balagurusamy, “Introduction To Computing And Problem Solving Using Python”, McGraw Hill Education Private Limited, New Delhi.
- Mark Lutz, David Ascher, “Learning Python”, Shroff Publishers & Distributors Private Limited,2009.
Course Outcomes: After successful completion of the course, a student will be able to :-
- Understand the concepts involved in programming language design and implementation.
- Understand the functional, logic, and object-oriented programming paradigms.
- Understand design/implementation issues involved with variable allocation and binding, control flow, types, subroutines, parameter passing.
- Understand the compilation and storage process.