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

17
week5/ex4.py Normal file
View File

@@ -0,0 +1,17 @@
def main():
print('==Exercise 4==')
# Create a tuple containing a sequence of numbers
tuplex = (4, 6, 2, 8, 3, 1)
# Print the contents of the 'tuplex' tuple
print(tuplex)
t_o = (*tuplex,999)
print(f"Modified tuple: {t_o}")
print('==End Of Ex4==')
return 0
if __name__ == '__main__':
main()