Files
ICSP1-Works/week5/ex4.py
2026-03-30 09:33:48 +08:00

17 lines
335 B
Python

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()