Why isn't return working? Where is the mistake?

  • 0
    Hello! Return does not work in python function. Java script console.log () outputs null.

    JavaScript code:
    var tut = eel.istatus();
    if (tut == "show"){

    Python code:
    def istatus():
    	with open("tstatus.ini") as file:
    		tstatus = file.read()
    	if tstatus == "1":
    		itut = "show"
    		return itut
    JavaScript Anonymous, Mar 21, 2019

  • 1 Answers
  • 0
    tstatus is not equal to "1"
    Mila Lamb

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!