0
How to use for loop inside f-string?
#take this case : names = ['Bob', 'Alice', 'Guido'] for index,value in enumerate(names): print(f"{index}:{value}")
1 Réponse
+ 1
What is the question?
Your case looks like the answer to your question.
#take this case : names = ['Bob', 'Alice', 'Guido'] for index,value in enumerate(names): print(f"{index}:{value}")