#for loop help

1 messages · Page 1 of 1 (latest)

shadow karma
#

hey can someone please run me through this question

modest whaleBOT
#

<@&987246399047479336> please have a look, thanks.

modest whaleBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

keen lake
#

and then it is used in the for loop

#

that will iterate from 3 up to 9

#

that is 6 times, so it will do whatever is inside of the brackets by 6 times

shadow karma
#

mhm

floral raft
shadow karma
#

i get 64

floral raft
#

3,4,5,6,7,8,9

shadow karma
#

starts at tho

keen lake
shadow karma
#

after first loop 4

#

@floral raft or @keen lake can some1 run me through step by step

floral raft
#

Ok - what is k1 to k3 after the first loop?

shadow karma
#

2

#

2

#

2

floral raft
shadow karma
#

how

keen lake
#

you have 2 iterations there

floral raft
#

You have to think in steps and what is true NOW versus in the past or future. Slow and steady.

keen lake
#

you can see how the variables are constantly rewriting their past versions

floral raft
#

(It also works out to be a very famous sequence)