Python Forum

Full Version: Calling chunks of code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way in python to assign a set of functions, a/o actions to a variable that i can call to and run instead of copy/pasting the same chunk of code over and over?
Not sure what you mean by a/o. Have you read about functions?
Please reply on the forum instead of PMs. You said my link isn't working?
I recommend you go through some of the basic python tutorials that are out there, they will get you up and running. Really it's tutorials first then forums once you are well and truly stuck. Forums can be a very frustrating first port of call... do what you can using google first.