Monday, 2 February 2015

python 3.4.2 part 11 executing a function from other fileStudent code


Create two files







1.teacher.py
2.student.py




student.py
/******************/
def john():
    print("my name is john")


teacher.py
/*****************/

import student

student.john()






No comments:

Post a Comment