Ask coding questions

← Back to all posts
The Loop Problem
CollinKunsman (108)

I don't remember how to make loops, so if you guys could comment down below, that would be great!

Comments
hotnewtop
Bcwlkr (2)

@CollinKunsman which language are you talking about

a5rocks (834)

In what language?

Python:

for i in range(500):
  .. something ..

or

while True:
  .. something ..

Javascript:

for (var i = 0; i < 500; i++) {
  .. something ..
}

or

while (true) {
  .. something ..
}

If you want more examples, just google "loops in x", where x in the name of the programming language.

CollinKunsman (108)

@a5rocks Hmm.... What about tkinter?

a5rocks (834)

@CollinKunsman tkinter should still be using python. It's just there's a python interface called tkinter (iirc)