Answers for "only run python script in python"

C
2

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
0

python project script run

import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__),'../../'))
import src.mymodules.module1
Posted by: Guest on June-16-2021

Code answers related to "only run python script in python"

Code answers related to "C"

Browse Popular Code Answers by Language