- l=[‘w’,‘e’]
T2 =tuple(l)
T2 (‘w’, ‘e’) ouput - write a program to create 3 tuples from the input given below:
1)“abcdef” 2) 3 ,4,5,6 3) [11,12,13] - what will be the type of t1,t2,t3 created as per the code considering the input from above question
- write a program to create a tuple with a single input value
- write a program to print a tuple first three and last three element in the following manner
1st element, last element
2nd element, 2nd last element
3rd element, 3rd last element
Help me with the code of the following
What is t1,t2 and t3 in point 3 ?
Please send the correct question.
T1, t2 and t3 are same in as that of question 2
Sir all are different questions
t1=(“abcdef”)
t2 = (4,5,6)
t3 = ([11,12,13])
3.
type of t1 : string
type of t2 : tuple
type of t3: list
4.
t = (“hello”,)
print(type(t))
5.
t = (1,2,3,4,5,6,7,8,9)
n = 0
b = 1
for i in range(1,4):
print(t[n],t[-b])
n += 1
b += 1
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
No sir i want the code of the following
Sir 1st one ko bhi solve karna ha