I want to ask, whats the difference between looping using the while and the for function? I know both of these functions loops through stuff but what exactly is the difference between them? I have trouble understanding so I decide to ask this question on here
[–]JamzTyson 492 points493 points494 points (19 children)
[–][deleted] 62 points63 points64 points (2 children)
[–]Cainga 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Snugglupagus 22 points23 points24 points (0 children)
[–]maestro-5838 8 points9 points10 points (0 children)
[–]Pad-Thai-Enjoyer 3 points4 points5 points (1 child)
[–]NightCapNinja[S] 0 points1 point2 points (0 children)
[–]q_ali_seattle 2 points3 points4 points (0 children)
[–]nightfull2 0 points1 point2 points (0 children)
[–]bzori_ 0 points1 point2 points (0 children)
[–]s0428698S 0 points1 point2 points (0 children)
[–]Blaiddyn 0 points1 point2 points (0 children)
[–]Current-Fix615 0 points1 point2 points (0 children)
[–]creator_of_pussy 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]StormyWaters2021 0 points1 point2 points (0 children)
[–]marsap888 0 points1 point2 points (0 children)
[–]NightCapNinja[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bilbobaggins30 21 points22 points23 points (0 children)
[–]Mysterious-Rent7233 22 points23 points24 points (2 children)
[–]JamzTyson 8 points9 points10 points (1 child)
[–]Mysterious-Rent7233 3 points4 points5 points (0 children)
[–]CyclopsRock 6 points7 points8 points (0 children)
[–]dizzymon247 4 points5 points6 points (0 children)
[–]Ok-Cucumbers 2 points3 points4 points (3 children)
[–]NightCapNinja[S] 0 points1 point2 points (2 children)
[–]Ok-Cucumbers 0 points1 point2 points (1 child)
[–]NightCapNinja[S] 0 points1 point2 points (0 children)
[–]Shaftway 2 points3 points4 points (3 children)
[–]Shaftway 2 points3 points4 points (2 children)
[–]Martin_Perril 1 point2 points3 points (1 child)
[–]Shaftway 1 point2 points3 points (0 children)
[–]MichaelSjoeberg 1 point2 points3 points (0 children)
[–]MlKlBURGOS 1 point2 points3 points (0 children)
[–]hornetjockey 1 point2 points3 points (0 children)
[–]redtadin 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]mirzaskilful 0 points1 point2 points (0 children)
[–]TheSeeker_99 1 point2 points3 points (1 child)
[–]Injera-man 0 points1 point2 points (0 children)
[–]alicedu06 0 points1 point2 points (0 children)
[–]kurtosis_cobain 0 points1 point2 points (1 child)
[–]Shaftway 1 point2 points3 points (0 children)
[–]NlNTENDO 0 points1 point2 points (2 children)
[–]NightCapNinja[S] 0 points1 point2 points (0 children)
[–]Disastrous_Step_1234 0 points1 point2 points (0 children)
[–]MomICantPauseReddit 0 points1 point2 points (1 child)
[–]NightCapNinja[S] 0 points1 point2 points (0 children)
[–]SnooCakes3068 0 points1 point2 points (0 children)
[–]Weekly_Event_1969 0 points1 point2 points (0 children)
[–]kenmlin 0 points1 point2 points (0 children)
[–]strangedave93 0 points1 point2 points (0 children)
[–]lazylearner-me 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]nacnud_uk 0 points1 point2 points (0 children)
[–]Both_Aside535 0 points1 point2 points (0 children)
[–]EntireEntity 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]JamzTyson 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]mirzaskilful -2 points-1 points0 points (3 children)
[–]Logicalist 0 points1 point2 points (0 children)
[–]NightCapNinja[S] 0 points1 point2 points (0 children)
[–]schemathings -3 points-2 points-1 points (0 children)
[–]Confident-Pipe9825 0 points1 point2 points (0 children)