+ 5
How to create our own module? Is it so hard..
4 Answers
+ 16
Check it out and thanks for the inspiration ;)
https://code.sololearn.com/cLF0P3C3eZ52/?ref=app
+ 9
mod.py
def calculator(x,y):
print("Sum: ", x+y)
# In the same folder
test.py
from mod import calculator
calculator(10,40)
---- OUTPUT ----
Sum: 50
# That is small example if you need a thorough explanation tell meâș
+ 3
Did you get it Kasimayan?
+ 1
yeah i got it thank u frnds.. i think I need more practices