How do I make this work? I tried looking in websites, but to no avail, I need this to work because I want to use it instead of running the files separately, so can anyone help me with this code?
I need to know what is wrong here.
input=("input 1 for encoder and 2 for decoder: ")
if input=1 open encoder.py
if input=2 open decoder.py
edit: this question is different and not a duplicate because this question was asking on how to run a python script based on the user input, e.g. user inputs 1 then python script encoder is ran
if option == "1":
import encoder
elif option == "2":
import decoder
code is from sr0812 it is a different implementation here