Computer Science, asked by asha111113, 10 months ago

write a python code
let tuple I = (10,50,20,40,30)
1. To display the elements 10 and so fecom tuple l.
ii. To display the length of tupel.
1. To display find the minimum element from tuple 1
TV. To add all elements in the tuple1
1. To display same tuple I multiple times.​

Answers

Answered by Anonymous
3

Answer:

All the answers are given in Python code base format.

For the first question it is asking to display all the elements

1. tuple1 = (10,50,20,40,30)  

print(tuple1)

For the 2nd question it is said to print the length only

2. tuple1 = (10,50,20,40,30)  

print(len(tuple1))

For 3rd it is said to find the minimum element

3. tuple1 = [10,50,20,40,30]  

print("Smallest element is:", min(tuple1))

4. tuple1= 10,50,20,40,30[]  

Sum = sum(tuple1)  

print(Sum)

Similar questions