Added week 5
This commit is contained in:
17
week5/ex4.py
Normal file
17
week5/ex4.py
Normal 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()
|
||||
Reference in New Issue
Block a user