-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.py
More file actions
47 lines (24 loc) · 1010 Bytes
/
function.py
File metadata and controls
47 lines (24 loc) · 1010 Bytes
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
# def function_name():
# print("hello")
# function_name()
# def greet(name):
# print ("greetings, " + name,)
# greet ("john")
################################################################ default aait function call cheyan #################################################################
# def greet(name="john"):
# print ("hello, " + name)
# greet()
################################ return function #################################################################
# def greet(a,b):
# c=a+b
# return c
# a= greet (2,4)
# print (a)
# =======>>>>>>>>>>>>>>>>>>>>>> write a python program to find sum of given numbers is in the list or not================>>>>>>>>>>>>>>
def sum_in_list (a,b,c):
sum=a+b
if sum in c:
print (f"the sum of {a}and {b}in {c} and it is in the list")
else:
print (f"the sum of {a} and {b}in {c} and it is not in the list")
sum_in_list(2,3,[1,2,3,4,6])