Hi,
I am new to python I have a question regarding for and while loops. From what I’ve seen while loop in bash is what for loop in python is and vice versa. Because for loop I bash seem to be doing loop until condition is meet which is what python while loop seem to be doing and while loop in bash iterates over text or block of code which is what for loop does in python. Am I missing something?
Bash and Python both have while
and for
loops, and work the same way, afaik
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.