Class 2 Introduction Python
Class 2 Introduction Python
10--->int
'scodeen'--->str
10.5--->float
4.For Network programming.
5.For developing games.i.Insertion order are preseved.
ii.hetrogeneous object are allowed.
iii.duplicates are allowed.
iv.Growable in nature.
v.values should be enclosed within squre bracket.
ex:-
l = [10,56.87,7+9j,True,'string',[1,2,3,4],10]
>>> l
[10, 56.87, (7+9j), True, 'string', [1, 2, 3, 4]]
>>>
6.Fotr Data analysis application and data science.Note:- But in python3 we have
only input() method and eaw_input() method is not available.
python 3 input() function behaviour exactly same as raw_input() method of py2 that
is every input value is treated as str type only.
python 3 input() function behaviour exactly same as raw_input() method of py2 that
is every input value is treated as str type only.
>>> s = {101:'Tushar',102:'Balaji',103:'Rupali'}
>>> s.clear()
>>> s
{}operation,
Python proviede many operatos.
1.Arithmetic Operators
2.Relational or comparision operatos
3.Logical Operatos
4.Bitwise Operators
5.Assignment Operatos
6.Special Operator.
Limitation of python.10--->int
'scodeen'--->str
10.5--->float
Note:- But in python3 we have only input() method and eaw_input() method is not
available.
python 3 input() function behaviour exactly same as raw_input() method of py2 that
is every input value is treated as str type only.
Programming is ver fast and output is very fast compare to middle level lang.