File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # function
2
+ numbers = [1 ,2 ,3 ,4 ,5 ]
3
+ # print(len(numbers))
4
+
5
+ # import math
6
+ import math
7
+ # num = int(input('Enter number to make square root'))
8
+ # print('Answer of {} is : {} '.format(num,math.sqrt(num)))
9
+
10
+ # programmer defined functions
11
+ # def ppt_function():
12
+ # print('this is def function')
13
+
14
+ # ppt_function()
15
+
16
+ # add substract multiply and division
17
+ def add (a ,p ):
18
+ return print ('added value is : ' ,a + p )
19
+
20
+ def substract (a ,p ):
21
+ return print ('subtracted value is : ' ,a - p )
22
+
23
+ def multiply (a ,p ):
24
+ return print ('multiply value is : ' , a * p )
25
+
26
+ def division (a ,p ):
27
+ return print ('divided value is : ' , a / p )
28
+
29
+ add (5 ,4 )
30
+ substract (5 ,4 )
31
+ multiply (5 ,4 )
32
+ division (5 ,4 )
33
+ print ('Calculated' )
34
+
You can’t perform that action at this time.
0 commit comments