Skip to content

Commit fa55322

Browse files
committed
Using Function Parameters
1 parent 2d73db9 commit fa55322

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

func_param.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/python3.1
2+
# Filename : func_params.py
3+
4+
def printmax(a, b):
5+
if a > b:
6+
print(a)
7+
else:
8+
print(b)
9+
10+
printmax(3, 4)
11+
12+
x = int(input('Please input the value of x : '))
13+
y = int(input('Please input the value of y : '))
14+
printmax(x, y)

0 commit comments

Comments
 (0)