Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
Home
Technology
What is the output of print tuple[0] if tuple = (...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
interview-question-answer
technology-questions-answers
1
Answer
0
votes
answered
Nov 23, 2020
by
JackTerrance
It will print first element of the tuple. Output would be abcd.
Related questions
0
votes
Q: What is the output of print tuple + tinytuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) and tinytuple = (123, 'john')?
What is the output of print tuple + tinytuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) and tinytuple = (123, 'john')?...
asked
Nov 24, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print tuple[2:] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
What is the output of print tuple[2:] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked
Nov 24, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked
Nov 24, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print tuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
What is the output of print tuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print list[0] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
What is the output of print list[0] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print list1 + list2, if list1 = [ 'abcd', 786 , 2.23, 'john', 70.2 ] and ist2 = [123, 'john']?
What is the output of print list1 + list2, if list1 = [ 'abcd', 786 , 2.23, 'john', 70.2 ] and ist2 = [123, 'john']?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print list[2:] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
What is the output of print list[2:] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print list if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?
What is the output of print list if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print tinytuple * 2 if tinytuple = (123, 'john')?
What is the output of print tinytuple * 2 if tinytuple = (123, 'john')?...
asked
Nov 24, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: What is the output of print tinylist * 2 if tinylist = [123, 'john']?
What is the output of print tinylist * 2 if tinylist = [123, 'john']?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
0
votes
Q: Consider a list2 with values 70,60,50. What will be the output statements considering that the above objecthas been created already.a. print (list2*2)
Consider a list2 with values 70,60,50. What will be the output statements considering that the above object has ... print(list2*3) Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())
What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper()) a)a B C D b) a b c d c) error d)A B C D...
asked
Jan 2, 2023
in
Technology
by
JackTerrance
python-question-answers
0
votes
Q: A random variable X has the following probability distribution : `{:(X:,1,2,3,4,5,6,7,8),(P(X):,0.15,0.23,0.12,0.10,0.20,0.08,0.07,0.08):}` for the ev
A random variable X has the following probability distribution : X: 1 2 3 4 5 6 7 8 P(X): 0.15 0.23 0.12 0.10 0.20 0.08 0.07 0.08 for the events E=[X is a prime number] F={X...
asked
Nov 16, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-interview-questions-answers
probability-multiple-choice-questions
probability-mcq-with-answers
probability-mcq
probability-questions
0
votes
Q: What is the output of print str[0] if str = 'Hello World!'?
What is the output of print str[0] if str = 'Hello World!'?...
asked
Nov 23, 2020
in
Technology
by
JackTerrance
interview-question-answer
technology-questions-answers
...