-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFunction in Python.py
100 lines (84 loc) · 1.34 KB
/
Function in Python.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# def add(a,b):
# c=a+b
#
# print(c)
# add(5,7)
# def sum(x,y):
# z=x+y
# print(z)
# a=int(input(" enter first number : "))
# b=int(input(" enter first number : "))
# sum(a,b)
# def add(a,b):
# c=a+b
# return c
# print(add(9,6))
# print(add(1,5))
#
# def a(x,y):
#
# return (x+y)
#
# print(a(4,5))
# def sum(a,b):
# c=a+b
# return c
# print(sum(9,6))
#------------------------------
# def foo():
# print("hello")
# foo()
#------------------------------
# def greet():
# print("h",end=" ")
# print("m")
#
# def add(a,b):
# return a+b
# result = add(4,5)
# greet()
# print(result)
#-------------------------------
# def a_s(x,y):
# a=x+y
# b=x-y
# return a,b
# r1,r2=a_s(9,4)
# print(r1,r2)
# def div(a,b):
# c=a//b
# return c
# x=int(input('enter A : '))
# y=int(input('enter B : '))
#
# print(div(x,y))
# def fun1():
# print("11111")
# def fun2():
# print("22222")
# fun1()
# fun2()
#--------------------------
# def add(a,b):
# c=a+b
# print(c)
#
# add(4,5)
# def sum(a,b):
# c=a+b
# return c
#
# print(sum(3,4))
#----------------------------------
# def add(a,b):
# return a+b
#
# x=int(input('A 1 : '))
# y=int(input('B 1 : '))
#
# print('Result 1 : ',add(x,y))
#
# i=int(input('A 2 : '))
# j=int(input('B 2 : '))
#
# print('Result 2 : ',add(i,j))