# if One parameter is passed then it will create a sequence from 0 to before the given parameter number...
for i in range(8):
print(i)
print('\n\n\n')
# if Two parameters are passed then it will create a sequence from 'first parameter' to before the 'second parameter'....
for i in range(6, 12):
print(i)
# if Three parameters are passed then it will create a sequence from 'first parameter' to before the 'second parameter' but it will jump depending
# on the 'thrid parameter', that means if third parameter is 3 it will skip or jump 3 numbers or if it is 10, then it will skip or jump 10 numbers
# simple.....
for i in range(0, 101, 10):
print(i)
def to_celsius(x):
return (x - 32) * 5 / 9
for x in range(0, 101, 10):
print(x, to_celsius(x))
0 Comments