I'm trying to code a hangman game where a user only has three incorrect guess attempts. i.e. if they guess the correct letter they continue playing. If they gue
Background I have a function that makes a REST API call using UrlFetchApp in Google Scripts. But the response only returns 2000 records at a time. If there are
So I have the following task: First generate a list with strings of fictitious names for image files (e.g.my_list['image1.png','image2.png','i
I'm wrote my code using combination of stack & queue data structures. My code is working, but I have a problem in the main() method. I'm using a loop to rea
How can I write a condition that fulfills the same condition as inside the while clause without using a <stdbool.h> void show_path(int a[][5]) { int i =
I am a beginner in Python3 and was learning the basics during the last few weeks. I decided to use my knowledge and was trying to build a text-based game based
I would like to let a while loop run, the stuff thats happening inside takes about 2 seconds to complete (it varies a small amount), so if I use time.sleep(60 o
I would like to let a while loop run, the stuff thats happening inside takes about 2 seconds to complete (it varies a small amount), so if I use time.sleep(60 o
I have seen many ideas about how to reply a game but none of them worked for me. import random list_number=["","","o"] random.shuffle(listing) def player_choice
My code below wont run due to " Directory stack not deep error...Pls tell me what's wrong. I suspect the error is in the while loop. I have made several adjustm
I am reading a python basics book and there is one function which I don't understand how it works. How is is possible that output looks like pow function even t
I am trying to solve a simple problem in python and this problem I'm using while true loop and to exit this loop I'm using EOFError or in the terminal using con
Working on this program that's supposed to take a vector of integers as input and return the one with the longest integer. Example (vector 20 738 5942 125) and
There is a telegram bot on aiogram. # ... missing code... async def current_info(message: types.Message, state: FSMContext): current_data = {} while Tr
I am having trouble iterating the action of opening a list containing URLs using selenium. the issue is in the part labeled #Second Part in my code. linklinkfin
why there is no "*" in output? the input is : abcde[enter key] #include<stdio.h> int main(void){ char ch; while ((ch=getchar( ))== 'e') pr
Error Message: Exception in thread "main" java.lang.NumberFormatException: For input string: "Ace of Clubs" at java.lang.NumberFormatException.forInputStrin
I am using the while loop to iterate through an array and trying to terminate the loop using the return (I tried foreach before which doesn't terminate for retu
I'm a bit stuck because I've already written those functions in Java and they work properly, and then, when "converted" to python, they didn't work as expected.
I did this class to do the inserts but every time I need insert again, I need initialize the method main of this class again. Because it is in just one cycle. p