diff --git "a/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/5function.py" "b/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/5function.py" index 0ed23bf..6baa462 100644 --- "a/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/5function.py" +++ "b/Python\345\237\272\346\234\254\350\257\255\346\263\225\345\255\246\344\271\240/runoob/5function.py" @@ -1,14 +1,17 @@ +#Defining function hello() def hello(): print("hello") - +#Calling function for execution hello() - +#import moduleTest module import moduleTest +#defining ChangeInt() method with a argument def ChangeInt( a ): a = 10 b = 2 +#function call with passing argument ChangeInt(b) print(b) - -moduleTest.moduleTest_1() \ No newline at end of file +# invoke method of module moduleTest +moduleTest.moduleTest_1()