From 8ab0bd8d2ba5fd56057d801e7d1512826ae0665c Mon Sep 17 00:00:00 2001 From: Amritach222 <47746651+Amritach222@users.noreply.github.com> Date: Thu, 1 Oct 2020 23:03:24 +0545 Subject: [PATCH] Update 5function.py --- .../runoob/5function.py" | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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()