Internship
Internship
Group Members:-
1]Pawan Mohite
2]Nakul Sharma
3]Shrawan Bora
4]Saket Ambede
Topics Covered
1]Datatype in Python .
2]Loops in Python .
1]While loop:-
While Loop is used to execute a block of statements repeatedly until a given condition is
satisfied.
2]Do-while loop:-
The do while loop is used to check condition after executing the statement. It is like while
loop but it is executed at least once.
3]For loop:-
For loop is used for iterating over a sequence and for loop is used to exeute set of statements.
.
*List , Tuples , Dictionaries:-
1]List:-
Lists are used to store multiple items in a single variable. Lists are one of built-in
data types in Python used to store collections of data.
2]Tuples:-
Tuples are used to store multiple items in a single variable. Tuple is one of data types
in Python used to store collections of data.
3]Dictionaries:-
Dictionaries are used to store data values in key:value pairs and collection of key-
value pairs.
*OOP’s Concept:-
1]Class and Object
2]Inheritance
3]Polymorphism
*Class and Object:-
1]Class:-
Class is a user-defined data type that contains both the data itself and the methods that may
be used to manipulate it.
Syntax:- Class class_name:
Example:- Class fruit:
2]Object:-
An Object is an instance of a Class and almost everything in python is considered as object.
Syntax:-object-name = class-name(<arguments>)
Example:- fru= fruit()
*Inheritance:-