|
@@ -17,16 +17,29 @@ def concatenate(**kwargs):
|
|
|
return ret
|
|
|
|
|
|
|
|
|
+def create_actor(**kwargs):
|
|
|
+ base_dict = {'name': 'Райан', 'surname': 'Рейнольдс', 'age': 47}
|
|
|
+ for key, value in kwargs.items():
|
|
|
+ base_dict[key] = value
|
|
|
+ return base_dict
|
|
|
+
|
|
|
+
|
|
|
+def info_kwargs(**kwargs):
|
|
|
+ for key in sorted(kwargs):
|
|
|
+ print(f'{key} = {kwargs[key]}')
|
|
|
+
|
|
|
|
|
|
|
|
|
def main():
|
|
|
# func_1()
|
|
|
|
|
|
- print(concatenate(q='iHave', w="next", e="Coins", r=[10, 5, 10, 7]))
|
|
|
+ # print(concatenate(q='iHave', w="next", e="Coins", r=[10, 5, 10, 7]))
|
|
|
# print(concatenate(q='iHave', w="next", e="Coins"))
|
|
|
- # l = [1, 2, 3]
|
|
|
- # foo = ''.join(str(l))
|
|
|
- # print(foo)
|
|
|
+
|
|
|
+ # print(create_actor())
|
|
|
+ # print(create_actor(height=190, movies=['Дедпул', 'Главный герой']))
|
|
|
+
|
|
|
+ info_kwargs(c=43, b= 32, a=32)
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|