+ 1
Why don't we use double quotation in print statement while iterating a list using for loop?
For ex: mylist = ["this", "that", "learner", "curious", 23] for item in mylist: print(item)
5 Respuestas
+ 4
Because then output would be:
item
item
item
item
item
+ 3
Do you mean like why its not like this:
print("item") ?
Cause "item" is a string and item is a variable containing a value.
+ 3
Learner🎯 Because we would print "item", which is a string, for each item in the list, which has 5 items.
+ 1
Slick thank you always help me. God bless you bro
0
Seb TheS why does this happen bro?