Define and use a module : Module : Language Basics PYTHON examples


PYTHON examples » Language Basics » Module »

 

Define and use a module



#//File: b.py

def spam(text):
    print text, 'spam'

#///////////////////////////////////////////////////////////////////////////
#//File: Main.py

import b
b.spam('gumby')


           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Language Basics
» Module