DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
args in python
def
add
(
*
args
)
:
total
=
0
for
i
in
args
:
total
+=
i
return
total
print
(
add
(
5
,
5
,
10
)
)
Source by www.interviewbit.com #
PREVIOUS
NEXT
Tagged:
#args
#python
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit