About 57,400,000 results
Open links in new tab
  1. python - looping back to specific point in code - Stack Overflow

    Dec 8, 2014 · def chosen_pokemon(inp): if "fire" in inp: print "So you like fire types? I'll give you a chimchar!" return True elif "water" in inp: print "So you like water types? I'll give you a piplup!" …

  2. Jump to a Specific Line in Python – Quick and Easy Guide

    Using the seek() method to jump to a specific line. Python’s seek() method allows you to navigate to a specific position in a file. By using this method, we can efficiently jump to a desired line in …

  3. How can I loop back to line 2 after line 12? : r/learnpython - Reddit

    Jan 31, 2022 · I made a really quick number guessing game just to freshen up my python knowledge, but I forgot how to loop back to a previous line. I want the code to loop back to line …

  4. python - How to go back to a line of code...? [SOLVED] | DaniWeb

    Mar 26, 2011 · If by user input line of code you mean going back to choosing an equation without having to leave the program then just move d=raw_input("choose equation") into the while loop.

  5. How to jump back to a specific line of code (Python)

    Sep 18, 2017 · use this function to jump back to line key = keyRead(). besides, there are goto implementation in the wild.

  6. How to revert back to a previous line from user input - Python

    Dec 28, 2024 · The official dedicated python forum Guys have a question and cant seem to find the solution anywhere, most places are telling me to create a loop: LINE1: user_name = …

  7. How to go back after entering a code - Python Help

    Sep 18, 2023 · It looks like you are doing it in the command line interface, which is normal for the command line interface. If you want to go back and change your previous code, you should …

  8. How to make my python script go back to a certain line

    Mar 31, 2021 · What you should consider instead is using classes and functions as I've shown you before. Also, you can make a loop where you keep repeating the things. Consider the …

  9. python - How do i go back to a certain line of code? | DaniWeb

    On the gripping hand, if you have something where you want to repeat a fixed number of times - say, one time for each member of a list - you can use a for: loop: With a for: loop, it will set the …

  10. Help with redirecting a user to a specific line of code

    Dec 15, 2022 · return a + b + c. Here, we have created a function named function_name that has 3 parameters, a, b, and c. This is a very short function. All it does is return the sum of the …

  11. Some results have been removed
Refresh