Wednesday, March 24, 2021

python introduction day1

Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> 5+10
15
>>> a=5
>>> print(a)
5
>>> print(type(a))

>>> b=10
>>> print(b)
10
>>> print(type(b))

>>> c=a+b
>>> print(c)
15
>>> print(type(c))

>>> a="saikumar"
>>> print(a)
saikumar
>>> print(type(a))

>>> print(id(a))
23484040
>>> print(id(a))
23484040
>>> print(id(b))
1656382704
>>> a=15
>>> a
15
>>> type(a)

>>> id(a)
1656382784
>>> a=20
>>> id(a)
1656382864
>>>

No comments:

Post a Comment

python class topic video