+ 1
How to print python list - Can anyone help me solve the end of this code
5 Antworten
+ 1
print(*fruit,sep='\n')
try this...
+ 1
print(list(enumarate(fruits))
0
Thank you, but I wanted to display the index number followed by its value.
For example 0 - banana 1 - pineapple
0
who downvoted my code
I think if u want to display the list called fruit it works fine
0
thank you. it works but it doesn't return the index numbers. On the other hand, it is true that your code is super useful ;-)