Answers for "how to run other python script thro python"

1

how to execute python script in another script

import subprocess
subprocess.call(" python script2.py 1", shell=True)
Posted by: Guest on June-26-2021
1

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!")
Posted by: Guest on September-29-2020

Code answers related to "how to run other python script thro python"

Python Answers by Framework

Browse Popular Code Answers by Language