I would like to add a delay/sleep inside a while loop: I tried it like this: alert('hi'); for(var start = 1; start < 10; start++) { setTimeout(function
I am new to programming, so I started working on a small guessing game for n players In theory they are supposed to take turns trying to guess some String, I've
I have a dataset and I would like to keep the value in a column of this dataframe (test_masses) for the mass having the highest intensity for masses close to th
My code- import pandas as pd import datetime as dt import os import shutil path = "C:/Users/rocky/Desktop/autotranscribe/python/Matching" destination_path =
I have a big-ass time series data frame where one condition changes at variable intervals. I would like to zero the time with each new condition, so I converted
I've got this class in c++ and I'm having trouble with the second constructor: for some unknown reason, the IDE is acusing an infinite loop. I
I need to create a nodes for a linked list and return the head inside a Function. Definition for each node: type ListNode struct { Val int Next *ListNo
So i have an a array of numbers: $arr = [53, 182, 435, 591, 637]; All i am trying to do is loop trough each element and when a certain condition is true it sho
I want to build a loop in Matlab where 'i' is the iteration variable and for each 'i' an n*n matrix will be the outcome. my question is how can I tell the progr
Videos come from a folder and are automatically displayed on my website. But I am having a problem at implementing share feature. All I want to do is when share
I am trying to make a python program for "The Sieve Of Eratosthenes" but I am stuck at one place. The c program I wrote looks something like this : for (i = 2;
I have a list like this lst = [12, 0, 13, ' ', 8, ' ', 13, 4, 4, 3, ' ', 0, ' ', 19, 0, 23, 8, ' ', 20, 15, ' ', 19, 14, ' ', 20, 1, 20, 3] and what I am looki
Hello I want to create a new column from a given dataset (that I call here "df") with the first non-Nan for each row and closest from a given column For example
I'd like to set up on_press_key binds using Python's Keyboard module through a For loop that's iteration through dictionary items. However, the binds do not see
I want the html to open when the password is right and I have tried .js, document.write, .html, href, div, document.getElementById and nothing is working when i
I have an excel document with multiple sheets containing different data sets. For instance, first sheet has 2 column data where as the second sheet (sheet 2) ha
size = 10 table = [[0] * size] * size for iter in range(size): table[iter][iter] = 9 for iter in range(size):
The following code is not working as intended when I call the next() function at end of for loop. For some reason only one item from the list is printed and it
I have a very long function whose arguments take in different threshold values for different variables and give an event study result at the end. I want to comp
I have an input file where each line contains 99 lowercase letters, bccdddcdccddddddabcdabcabdbacbdcaaccbbcabacbccabcacbcdcccbdbacdcbbcbcbcccacadaaccababadbcbaa