Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 334 Bytes

File metadata and controls

15 lines (11 loc) · 334 Bytes

For Loops

Synatax:

for n in range(start, end, ):
print (n)

it doesnt include the end number though :)

Eg:

fruits=["apple", "orange", "pear"]
for fruit in fruits:
print(fruit)

Notes:

  • You can take input in the form of list using: namelist=input("Input name list here" ).split()