Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

loops

  1. cno

    JavaScript Sales Data in an Array - Javascript

    I need some help please, I have a sales data for a couple of years and i want to retrieve the below information using Javascript: -The total number of months included in the dataset. - The net total amount of Profit/Losses over the entire period. - The average of the changes in Profit/Losses...
  2. odnil

    Node.JS How can I restructure my loop to paginate faster right now it takes too long?

    This takes ages to retrieve data. Is there a more efficient way to do this? Per_page limit is 100 & I needed the function to be able to find results for any date range using pagination. So I added a do while loop and this is what I ended up with: async function foo(repoOwner, repository...
  3. D

    Java How do I solve this Java riddle?

    I have the following riddle: How do I solve this in Java, using while loops? I had an idea on how to do it with for-loops, but it doesn't work using for-loops So far, all I have is the following, which seems to be going through all possible combinations, but is incredibly slow, so I suspect...
  4. T

    Gravity Cycling Question

    Hello all, I have a fairly simple question. I am new to LUA and don't yet understand exactly how for loops work in this language yet. I have a code that I have integrated into my workspace that changes the gravity after 10 seconds as seen here: script.Parent.Gravity = 500 wait (10)...
  5. S

    Python 'for' loops, 'exp' variable question

    I am wondering what meaning the 'exp' variable in the 'for' loop. On my course I am taking it says it is a 'control variable' but I am struggling to comprehend what that means?
  6. K

    Python List index out of range error while iterating through 2 lists in python

    I have 2 Lists in my code. data list is having len = 11 new_list is having len = 23 I have to search if a string from data list and check if it exists in new_list. I can see that my target_data gets filled with data,but when i go to print it, I get an error.. My data list contents as below...
Back
Top Bottom