Test may args for func def.

This commit is contained in:
Captain ALM 2022-11-30 19:01:49 +00:00
parent 088d603607
commit c83fb46d2f
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

14
main.py
View File

@ -1,7 +1,7 @@
#Test While else
x = 0
while x < 10:
print(x)
x += 1
else:
print("Bye")
#Test any number of arg pass (As a tuple)
def iaccept(*many):
print(many)
iaccept()
iaccept("Test")
iaccept("Test", 1, 2)