17 lines
335 B
Python
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() |