January 2019
Beginner
318 pages
8h 23m
English
Now, after creating a module, we will learn how to import that module. In the previous example, we created a sample module. Now we will import the sample module in add.py script:
add.pyimport samplesum = sample.addition(10, 20)print(sum)Output:30
Read now
Unlock full access