i'm making a text-based game for class, and i've run into a few snags. here's what the game is doing: when the game initiates, it tells you where you ...
i'm making a text-based game for class, and i've run into a few snags. here's what the game is doing: when the game initiates, it tells you where you ...
I am trying to loop over a DataFrame. my code sample is the following: for index1, long in tqdm(sim_df_ha_rsi.iterrows(), total=sim_df_ha_rsi.shape[ ...
When I want to quit my calculator it works, but when I want to keep using it there comes a problem: I want to keep looping it from the start if I t ...
I have (ab)used a switch statement like this: i.e. no break's and no default I discovered that even when foo = 'bar', the baz case (and incidental ...
I am refactoring a switch statement in which I am performing am if conditional within one of the cases where the if will break the switch case and the ...
i want to be able to go back to the menu and be able to choose between adding more to the lists or displaying the records or ending th program, but ...
Actually, I have been trying, but I could not figure out how it works according to my plot code. I am trying to break the y-axis between (190 and 390) ...
So I wrote this code: while true text = gets if text == "goodbye" puts "goodbye" break end end (I wrote it with indentation) And when ...
The program on fields 9 - 16 will not break, but it will break on fields 76-83. Code: I am new to Java as well as programming in general. The progr ...
I have a first list, containing string lists and a second list containing strings. I want that when a string from the first list is found in the secon ...
I am trying to create a simple input query that will print the list of a users favorite planes after they say "Done" or will print "User does not have ...
I am trying to run this procedure, but am getting an "Error, missing operation", highlighting the conditional break: If I don't include the integer ...
I got a problem with regex. I have the following sentences: Dear reader, this is an example text to show my problem with regex The dot at the e ...
The question is: Calculate the value of π from the infinite series. Print a table that shows the value of π approximated by one term of this series, b ...
Below is the code that I want to replicate without using break /// Can't figure out, already tried using variables but can't make it work ...
the function is supposed to repeatedly remove the first element of a list until it finds an odd number or runs out of elements. i did it in a more com ...
I don't understand why is not working on my code Can you guide me what is wrong here, i really dont understand ...
I need break like in Java from when branch. From Kotlin 1.7.0 I get error when expression must be exhaustive Now I need to add a branch else. I ...
I want to move to the top of a set of nested loops as I am removing items from a list to run arithmetic on. So when I use break it ends all the loops, ...
This code throws a compile time error. I don't understand why this statement can't be reached. On doing the below modification to the original c ...