Answers for "how to tell python to go back to a previous line"

0

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#
Posted by: Guest on August-10-2021
0

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

'There is no answer'
Posted by: Guest on April-10-2021

Code answers related to "how to tell python to go back to a previous line"

Python Answers by Framework

Browse Popular Code Answers by Language