Ask coding questions

← Back to all posts
my code won´t work with def start
815398 (0)

Without the def start(): it works (with the code in main) and with nothing happens. Someone please help

InvisibleOne (2687)

Is there a reason why you are storing the main code in Couldn't you just put it in

815398 (0)

@InvisibleOne this is just a test code i have a much bigger code with several py's and this code is supposed to be imorted through a button in a different py. So yeah I need to use a def start.