Dear community,
I am absolutely new to Python but like to learn it.
Could you pls help to understand following code ( I dont understand the bold portion of the code):
I am absolutely new to Python but like to learn it.
Could you pls help to understand following code ( I dont understand the bold portion of the code):
# enumerate function in loops
l1 = ["eat","sleep","repeat"]
# printing the tuples in object directly
for ele in enumerate(l1):
print (ele)
# changing index and printing separately
# I don't understand next part
for count,ele in enumerate(l1,100):
print (count,ele) So i dont understand what does count,ele is ? Shouldn't it be one variable after for? what is the comma in between count and ele? And why it removes parentheses in output?
