Added week 9
This commit is contained in:
18
week9/ex2.py
Normal file
18
week9/ex2.py
Normal file
@@ -0,0 +1,18 @@
|
||||
def func1(*args,**kwargs):
|
||||
if args:
|
||||
for i in args:print(i)
|
||||
if kwargs:
|
||||
for i in kwargs.keys():print(f"{i}:f{kwargs[i]}")
|
||||
|
||||
def main():
|
||||
print('==Exercise 2==')
|
||||
|
||||
func1(20, 40, 60)
|
||||
print("")
|
||||
func1(80, 100)
|
||||
|
||||
print('==End Of Ex2==')
|
||||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user