Professional Documents
Culture Documents
Python Strings: Mahendra K. Verma
Python Strings: Mahendra K. Verma
Python Strings: Mahendra K. Verma
Mahendra K. Verma
Character
‘a’, ‘b’,’1’,’अ ‘, ‘$’
In [1]: x='2'
In [36]: chr(50)
Out[36]: '2'
Strings
In [14]: x = "This is a string.
In [15]:
Out[15]: 'This is a string.
In [71]: 5*'S'
Out[71]: ‘SSSSS'
In [123]: print(y)
abs
cde
In [126]: print('\u0905')
अ
In [132]: print('\x55')
U
"
Input/Output
In [18]: x=
In [21]:
Out[21]: ’10'
x
Thank you!