-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArguments.txt
More file actions
46 lines (37 loc) · 754 Bytes
/
Copy pathArguments.txt
File metadata and controls
46 lines (37 loc) · 754 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
#postianal argument
'''def add(a,b):
c=a+b
print(c)
add(2,4)'''
'''def details(name,age,city):
print(name,age,city)
#details('antony',25,'venice')
details(age='45',city='venice',name='sarkar')'''
#defaulut arguments
'''def data(name,contact=25):
print(name)
print(contact)
data('powel')'''
#variable lenght arguments
'''def add(a,*b):
c=a
for i in b:
c+=i
print(c)
print(b)
add(151,25,25,56,58,2,47,89,657,5)'''
'''def tech(*a):
print(a)
for i in a:
print(i)
tech('p','j','c','l','.net')'''
#Variable lenght keyword argument
'''def num(a,**b):
print(a)
print(b)
for i,j in b.items():
print(i,j)
num(2,even=12,odd=27,prime=5)'''
def re():
return 2+3
print(re())