About 223,000 results
Open links in new tab
  1. python - How do I write a loop to repeat the code? - Stack Overflow

    Feb 5, 2021 · I am a very beginner in Python and I want to repeat this code. But I don't really know how to do this without "goto". I tried to learn about loops but did not …

  2. How do i repeat the code multiple times? in python

    Oct 12, 2021 · How do I make the code reapte such that users can guess the answer to the random number only three times, how do I make it stop at a point? Thanks. This is a random …

  3. How to repeat a piece of code a certain amount of times in Python

    Mar 15, 2014 · But instead of having to make the same order, how could I adapt it so that the amount of people having tea, in this case a would be printed at the bottom? For example: …

  4. python - How to repeatedly execute a function every x seconds?

    I want to repeatedly execute a function in Python every 60 seconds forever (just like an NSTimer in Objective C or setTimeout in JS). This code will run as a daemon and is effectively like …

  5. How do I repeat the program in python - Stack Overflow

    I am having trouble writing a program to repeat this program. I want to ask them if they want to repeat (yes or no). If they say yes it repeats the whole program. This is what I have so far: …

  6. Python: How to keep repeating a program until a specific input is ...

    That above code repeatedly asks for the input if it is not ''. I need it to evaluate input until a blank line is entered.

  7. if statement - python repeat program while true - Stack Overflow

    Sep 24, 2012 · I am attempting to make my program repeat when the user inputs y/n, however I am confused on how to use a while true with this type of input, below is some code. again = …

  8. python - How can I make this repeat forever? - Stack Overflow

    Jun 21, 2014 · I have this code which generates random characters (it's a kind of terrain generator). I just can't get it to print forever. Here's the current code I have for it: import …

  9. python - How to repeat a while loop a certain number of times

    Jan 13, 2018 · As seen over here, there are two ways to repeat something a number of times. But it does not seem to work for me, so I was wondering if anybody could help. Basically, I want to …

  10. How to repeat blocks of code in Python - Stack Overflow

    Oct 31, 2015 · I've created a code that allows a user to view the average score of the values that are in the file. In Example the Text File would look like the following: Text File For Class 1: it is …

Refresh