Lec 6
Lec 6
Concatenation operator
Out[6]: 'KeshavMahavidyalaya'
Repetition Operator
In [7]: 1 "Keshav" * 4
Out[7]: 'KeshavKeshavKeshavKeshav'
In [8]: 1 # Type Error
2 "Keshav" + 2
--------------------------------------------------------------------------
-
TypeError Traceback (most recent call las
t)
Cell In[8], line 1
----> 1 "Keshav" + 2
Out[9]: False
Out[11]: True
In [13]: 1 ord("A")
Out[13]: 65
In [14]: 1 ord("a")
Out[14]: 97
In [18]: 1 print("it's a new line\nit's a new line") # notice the use of single and doubl