Professional Documents
Culture Documents
Python Code 1
Python Code 1
>>> print('lpu')
lpu
>>> print('LPU\N')
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 3-4:
malformed \N character escape
>>> print('LPU\n')
LPU
>>> type('')
<class 'str'>
>>> type('56')
<class 'str'>
>>> name = 'Vinay'
>>> name2 = name
>>> id(name)
2484240266416
>>>
>>>
>>>
>>> id(name2)
2484240266416
>>> age1 = 18
>>> age2 = age1
>>> id(age1)
2484194077520
>>> id(age2)
2484194077520
>>>
============================================================= RESTART:
E:/Python/Python Class.py
============================================================
Vinay Kumar
>>>
================================================================ RESTART:
C:/Python/vinay.py
================================================================
Vinay Kumar
LPU University
>>>
========================== RESTART: C:/Python/vinay.py =========================
Vinay Kumar
LPU University
LPUUniversity
>>>
========================== RESTART: C:/Python/vinay.py =========================
Vinay Kumar
LPU University
LPUUniversity
LPU*University
>>>
========================== RESTART: C:/Python/vinay.py =========================
Vinay Kumar
LPU University
LPUUniversity
LPU*University
Bihar*Vinay
>>>