Write and execute a PYTHON program to perform the following tasks
1.Write a Python program to create a tuple with 10 items and display the first 3 items.
The Python code may look like follows:
#Create a tuple with 10 items
tuplex = ('ENG', 10, 'Apple', 20, 'Sixty 69', 30, 12, '1^2+b^2=c^2', 11, 1)
#Display the first 3 items
print("The first 3 items: ", tuplex[0:3])
Comments
Leave a comment