Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

is there a way to refer back to a previous line in python

'There is no answer'
Comment

how to tell python to go back to a previous line

def main(): #defines the area in indents that will be triggered with main()#
print('hi')
yn = input('Wanna loop back to the start? ')
if yn = 'yes':
main() #loops back to where we defined main#
main() #This starts the main loop, without this, main would just be defined but not run#
Comment

PREVIOUS NEXT
Code Example
Python :: render django views 
Python :: how to drop columns from pandas dataframe 
Python :: how to speed up python code 
Python :: Python how to search in string 
Python :: split column values 
Python :: values django 
Python :: pytorch convert tensor dtype 
Python :: python new line 
Python :: python readlines strip 
Python :: python - How to execute a program or call a system command? 
Python :: render to response django 
Python :: python data type conversion 
Python :: python print() end 
Python :: black python 
Python :: Math Module log10() Function in python 
Python :: how stract avery .jpg string in a website python 
Python :: perform zero crossing using openCV 
Python :: cronometro python tkinter 
Python :: how to do merge sort in python 
Python :: fetch json array from mysql django 
Python :: how to make a random question generator in python 
Python :: how to plot a single cluster 
Python :: python vs java 
Python :: pytorch inverse 
Python :: pandas.describe per group 
Python :: join function 
Python :: entry tkinter 
Python :: tensorflow io check file exist 
Python :: how to skip error python 
Python :: tokyo timezone python 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =