Skip to content

Commit f857ec3

Browse files
Naveen GantaNaveen Ganta
authored andcommitted
functions
1 parent c276b5c commit f857ec3

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Functions/funct.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#function definition
12
def func():
2-
print("function")
3-
3+
print("Inside the function")
44

5+
#calling function
56
func()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#definiting a function with parameter
2+
def my_func(name):
3+
print("Hello " + name)
4+
5+
6+
#calling a function with the arguments
7+
my_func("naveen")

0 commit comments

Comments
 (0)