>>> list(range(1, 31)) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
vd = ['hey', 'bro','yoo']
print(range(len(vd)))
prints,
$ C:/python/Python311/python.exe "c:/Users/LENOVO/OneDrive/Desktop/python/python folder/hello.py" range(0, 3)
friends = ['joseph', 'glenn', 'sally']
for i in range(len(friends)) :
friend = friends[i]
print(range(len(friends)))
prints,
$ C:/python/Python311/python.exe "c:/Users/LENOVO/OneDrive/Desktop/python/python folder/hello.py" range(0, 3)
Have you got a punishment from your teacher if you break the law of the school, Speaking in Tamil as you must speak in English?
for s in range(500):
print("I will not speak in Tamil, hereafter")
I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter I will not speak in Tamil, hereafter......
prints 500 times. [ a proper way to finish the punishment in seconds! ;) ]