Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32042ac

Browse files
committed
Add demo for Arbitrary function arguments.
1 parent29c6375 commit32042ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎FunctionIntroduction/src/findprime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ def arbitrary_list_arg_func_2(a, b, c, *args):
4040
print('*args: stands for list of optional arguments')
4141
print(a,b,c,args)
4242

43+
44+
4345
defmain():
4446
forninrange(1,20):
4547
isprime(n)
4648

47-
print()
49+
print()
4850
optional_arg_func(n)# do not provide optional arguments
4951
print()
5052
optional_arg_func(n,30,50)# give optional arguments

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp