0% found this document useful (0 votes)
73 views1 page

3 Cs Bca Python and Lab

The document outlines a Python programming curriculum divided into five units covering topics such as Python basics, data types, control flow, functions, and database programming. It includes practical programming exercises like creating a calculator, using control flow tools, and connecting to a MySQL database. Textbook references are provided to support the learning material.

Uploaded by

Sathya Ashok
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)
73 views1 page

3 Cs Bca Python and Lab

The document outlines a Python programming curriculum divided into five units covering topics such as Python basics, data types, control flow, functions, and database programming. It includes practical programming exercises like creating a calculator, using control flow tools, and connecting to a MySQL database. Textbook references are provided to support the learning material.

Uploaded by

Sathya Ashok
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/ 1

PROGRAMMING IN Python

Subject Code 21UCS10

Unit I
Python – origins – features – variable and assignment – Python basics – statement and syntax –identifiers – Basic style guidelines –
Python objects – Standard types and other built-in types – Internal types – Standard type operators – Standard type built-in
functions.
unit II
Numbers – Introduction to Numbers – Integers – Double precision floating point numbers – Complex numbers – Operators –
Numeric type functions – Sequences: Strings, Lists and Tuples – Sequences – Strings and strings operators – String built-in methods
– Lists – List type Built in Methods – Tuples.
unit III
Mapping type: Dictionaries – Mapping type operators – Mapping type Built-in and Factory Functions - Mapping type built in
methods – Conditionals and loops – if statement – else Statement – elif statement – conditional expression – while statement – for
statement – break statement – continue statement – pass statement – Iterators and the iter( ) function - Files and Input/Output –
File objects – File built-in functions – File built- in methods – File built-in attributes – Standard files – command line arguments.
unit IV
Functions and Functional Programming – Functions – calling functions – creating functions – passing functions – Built-in
Functions: apply( ), filter( ), map( ) and reduce( ) - Modules – Modules and Files – Modules built-in functions - classes – class
attributes – Instances.
unit V
Database Programming – Introduction - Basic Database Operations and SQL - Example of using Database Adapters, Mysql - Regular
Expression – Special Symbols and Characters – REs and Python.
Text Books :

1 Wesley J. Chun Core Python Programming Pearson Education Publication 2012

PYTHON PROGRAMMING
Subject Code 21UCSP07

1. Create a simple calculator to do all the arithmetic operations.


2. Write a program to use control flow tools like if.
3. Write a program to use for loop.
4. Data structures
a. use list as stack.
b. use list as queue.
c. tuple, sequence.
5. Create new module for mathematical operations and use in your program.
6. Write a program to read and write files, create and delete directories.
7. Write a program with exception handling.
8. Write a program using classes.
9. Connect with MySQL and create address book.
10. Write a program using string handling and regular expressions.

You might also like