Subject Details
Dept     : MATHS
Sem      : 5
Regul    : 2023-2024
Faculty : S. Iswariya
phone  : NIL
E-mail  : iswariya.s.math@drsnsrcas.ac.in
179
Page views
2
Files
4
Videos
4
R.Links

Icon
Syllabus

UNIT
1
Welcome to Python

What is Python? — History of Python — Features of Python — Obtaining Python — Installing Python — Running Python — Comparing Python

UNIT
2
Getting Started

Program Output, the print Statement, and "Hello World!" - Program Input and the raw input() Built-in Function — Comments — Operators - Variables and Assignment Numbers - Strings - Lists and Tuples — Dictionaries - Code Blocks Use Indentation - if Statement - while Loop - for Loop and the range() Built-in Function - Files and the open() Built-in Function - Errors and Exceptions — Functions — Classes — Modules Problem 1: Write a python program to check whether the entered character is an Alphabet or not. Problem 2: Write a python program to add two numbers by getting the input from the user.

UNIT
3
Syntax and Style

Statements and Syntax - Variable Assignment — Identifiers - Basic Style Guidelines - Memory management - First Python Application - Python Objects: Python Objects-Standard Types -Other Built-in Types Problem 3: Write a Python program to swap two variables. Problem 4: Write a python program to add two binary variables.

UNIT
4
Numbers

Operators - Built-in Functions - Conditionals and Loops - if statement - else Statement- While Statement - for Statement - break Statement - continue Statement Problem 5: Write a Python program to calculate length of a String without using len() function Problem 6: Write a Python program to check leap year.

UNIT
5
Functions

Functions: What Are Functions? - Calling Functions - Creating Functions - Passing Functions - Formal Arguments - Positional Arguments - Default Arguments - Why Default Arguments? - Default Function Object Argument Example - Variable-length Arguments Problem 7: Create a python program to create a function with arguments and call the function with different user values as arguments. Problem 8: Create multiple username and prompt them using python code.

Reference Book:

1. Allen Downey, “Think Python How to Think Like a Computer Scientist”, Green Tea Press, 2012, ISBN-10 : 1491939362 2. Dave Kuhlman, “A Python Book: Beginning Python, Advanced Python, and Python Exercises”, 2009, Kindle Edition, ISBN-10: 0984221239

Text Book:

Wesley J Chun, “Core Python Programming”, First Edition, 2000, Prentice Hall, ISBN: 0-13-026036-3

 

Print    Download