Share your repls and programming experiences

← Back to all posts
HW IS SOOO EASY NOW
DSAWeihang (2)

so so so, in school we are learning least common multiples and greatest common denominators and this calculator can do my homework for me

Commentshotnewtop
[deleted]

Cool, now you should add an input and loop so that you don't need to run the repl each time to compute the problem.

DSAWeihang (2)

@GoofyGus Cool!So i just started! DO you know how to add and loop?

[deleted]

Yes, like this:

bob = True #bob is an extremely important variable
while bob == True:
  #do whatever needs to be done
  #you can break the loop with 'break' or changing bob to False

@DSAWeihang

[deleted]

Your welcome @DSAWeihang