Added week 5

This commit is contained in:
2026-03-30 09:33:48 +08:00
parent df970263d1
commit 9883796341
8 changed files with 89 additions and 0 deletions

12
week5/ex6.py Normal file
View File

@@ -0,0 +1,12 @@
def main():
d1 = {'a': 100, 'b': 200}
d2 = {'x': 300, 'y': 200}
print('==Exercise 6==')
d_o = {**d1,**d2}
print(f"Merged dict: {d_o}")
print('==End Of Ex6==')
return 0
if __name__ == '__main__':
main()