Posts

Unit 5

Unit V Object Oriented Programming (08 Hrs) Programming Paradigms-monolithic, procedural, structured and object oriented, Features of Object oriented programming-classes, objects, methods and message passing, inheritance, polymorphism, containership, reusability, delegation, data abstraction and encapsulation. Classes and Objects: classes and objects, class method and self object, class variables and object variables, public and private members, class methods.

Unit 6

Unit VI File Handling and Dictionaries  Files: Introduction, File path, Types of files, Opening and Closing files, Reading and Writing files. Dictionary method. Dictionaries- creating, assessing, adding and updating values.

Unit 4

Unit IV Strings Strings and Operations- concatenation, appending, multiplication and slicing. Strings are immutable, strings formatting operator, built in string methods and functions. Slice operation, ord() and chr() functions, in and not in operators, comparing strings, Iterating strings, the string module

Unit 3

Unit III Functions and Modules  Need for functions, Function: definition, call, variable scope and lifetime, the return statement. Defining functions, Lambda or anonymous function, documentation string, good programming practices. Introduction to modules, Introduction to packages in Python, Introduction to standard library modules

Unit 2

Unit II  Decision Control Statements  Decision Control Statements: Decision control statements, Selection/conditional branching Statements: if, if-else, nested if, if-elif-else statements. Basic loop Structures/Iterative statements: while loop, for loop, selecting appropriate loop. Nested loops, The break, continue, pass, else statement used with loops. Other data types- Tuples, Lists and Dictionary.

Basics of Python Programming

Image
Features of Python Python provides number of features as follows, Easy to Learn and Use -  Python is easy to learn and use. It is user and developer - friendly programming language. Expressive Language -  Python language is understandable and readable. Interpreted Language -  Python is an interpreted language. Due to interpreter code is executed line by line at a time. Cross-platform Language - Python work with different platforms, we can say that Python is a platform independent / portable programming language. Free and Open Source -  Python language distribution is freely available it means that the source-code freely available for further development. Object-Oriented Language -  Python is object oriented language and all concept related to object orientated  supported by python. Large Standard Library -  IPython having large number of library and it provides rich functions and packages for application development in easy way. GUI Programming Suppor...

Lab Assignment (Programming and Problem Solving) SPPU BE First Year.

Assignment No: 1 To calculate salary of an employee given his basic pay (take as input from user). Calculate gross salary of employee. Let HRA be 10 % of basic pay and TA be 5% of basic pay. Let employee pay professional tax as 2% of total salary. Calculate net salary payable after deductions. Download Source Code Assignment No: 2 To accept an object mass in kilograms and velocity in meters per second and display its momentum. Momentum is calculated as e=mc2 where m is the mass of the object and c is its velocity. Download Source Code Assignment No: 3 To accept N numbers from user. Compute and display maximum in list, minimum in list, sum and average of numbers. Download Source Code Assignment No: 4 To accept student’s five courses marks and compute his/her result. Student is passing if he/she scores marks equal to and above 40 in each course. If student scores aggregate greater than 75%, then the grade is distinction. If aggregate is 60>= and <75 then the  grade if first div...