×
Namespaces

Variants
Actions

How to import a variable from a module

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: gaba88 (30 Jun 2008)
Last edited: hamishwillee (08 May 2013)

The two line code below shows how to import a variable from a module.

Method 1

import mymodule
 
new_variable=mymodule.x

Method 2

from mymodule import x

or

from mymodule import x as new_variable
This page was last modified on 8 May 2013, at 07:41.
43 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×