Jump to content
xisto Community
manuleka

Python Include How To

Recommended Posts

in php, i can easily call functions created on other files by just adding the file as includei have 3 python files - file1,file2,file3file1 is main and when executed it will only initiate a function which will only require scripts on file2 OR file3how can i include (or any other ways of importing) file2 and file3 on file1?

Share this post


Link to post
Share on other sites

in php, i can easily call functions created on other files by just adding the file as include
i have 3 python files - file1,file2,file3

file1 is main and when executed it will only initiate a function which will only require scripts on file2 OR file3

how can i include (or any other ways of importing) file2 and file3 on file1?


import did the trick :) this reminds me of CSS and xHtml

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.