make a script run itself again python

#our code
var = input("Hi! I like cheese! Do you like cheese?").lower()
if var == "yes":
  print("That's awesome!")

# using While True
while True: # Will keep going untill told not to using 'break'
  var = input("Hi! I like cheese! Do you like cheese?").lower()
  if var == "yes":
    print("That's awesome!")

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to trigger other python script to run from other python script permanently run a script in python python how to run code again how to run python script from python script after its finished python script to run a python script regularly how to run python script again and again python execute script from another script without wating for it to finish python start another python script how to make python script run again and agin how to make a program run again in python how to make a run program again in python how to automatically restart a program in python python programm restart os command to restart a py file how to resart the code again in python python command relaunch the file restart file python reboot a script with python make python script run over and over again how to relaunch a python script from itself relanch script python how to restart a python program within itself how to restart a python script with os module how to make python file run itself how to stop and rerun a python program python how to run itself restart python script shell python script restart self how to restart code in python how to make a python script that resets itself when it gets an error how to make a python script that resets itself when it gets an erorr how to make a python script that resets itself when it gets an eror how to restart execution of program in python How to build a restart def in python how to make python code run again or quit restart in python RESTART: python python self restarting script python restarting script restart a python script restart a script python python restart program after end completely restart program python python restart process python script how to make a python program restart python restart end python stop script and restart restart python program from beggining how to restart a python script pythone code reexicute itse restart a python script inside the scrpt how to restart python restart script python restart python shell command restart python cli python restart a programm in the python interpreter python restart file run again in python python script to run itself how to restart programme python script run script agein python how to rerun a python script how to restart script in python exit and restart python script python restart script python self restart script restart python script python restart program make a script run itself again python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source