0

Can someone explain the 'for loop' in Python?

I only have the C++ 'for loop' logic in my head and I cannot get rid of it just for the time it takes me to understand the 'for loop' in Python. Thanks for your help

17th Aug 2022, 2:50 PM
eloufou
eloufou - avatar
3 Respostas
+ 5
eloufou , here is a link to a short tutorial from sololearn about for loop from the community section: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2435/?ref=app
17th Aug 2022, 8:29 PM
Lothar
Lothar - avatar
+ 2
We use the for to iterate in a sequences, like lists, dictionarys, strings, etc. For example, yo can use it to print all letters in a string.
17th Aug 2022, 2:59 PM
ian szczyrek
ian szczyrek - avatar