Subject Details
Dept     : COM IT
Sem      : 5
Regul    : Regular
Faculty : Pavithra.R
phone  : NIL
E-mail  : pavithra.r.cit@drsnsrcas.ac.in
218
Page views
5
Files
0
Videos
5
R.Links

Icon
Syllabus

UNIT
1
Introduction

Introduction _ Python _ History of Python _ Features of Python _ Obtaining Python _ Installing Python _ Running Python _ Comparing Python

UNIT
2
Getting Input output Statement

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

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

Numbers - Operators - Built-in Functions - Conditionals and Loops - - if statement - else Statement - While Statement - for Statement - break Statement - continue Statement

UNIT
5
Functions

Functions - Functions - Calling Functions - Creating Functions - Passing Functions - Formal Arguments - Positional Arguments - 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:

REFERENCE MATERIALS 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:

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

 

Print    Download