What is the output of and explanation?

0 votes

print list + tinylist * 2

if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]

tinylist = [123, 'john']?

Can someone explain me as what is the working over here?

Jul 20, 2018 in Python by eatcodesleeprepeat
• 4,670 points
27 views

1 answer to this question.

0 votes

It will print concatenated lists. Output would be

['abcd', 786, 2.23, 'john', 70.2, 123, 'john', 123, 'john'].

answered Jul 20, 2018 by Priyaj
• 56,900 points

Related Questions In Python

0 votes
0 answers

what is the use of args and kwargs in python?

can you an example for each? READ MORE

May 10 in Python by Waseem
• 4,470 points
56 views
+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,420 points
1,570 views
0 votes
2 answers

What is the use of Python language?

python is general purpose programming language.it very ...READ MORE

answered Mar 15 in Python by rajesh kumar
45 views
0 votes
1 answer

What is the use of raw_input function in Python?

raw_input fuction is no longer available in ...READ MORE

answered May 2, 2018 in Python by aayushi
• 750 points
115 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 330 views
0 votes
1 answer

What is the difference between Python and IPython?

There are few differences between Python and ...READ MORE

answered Jul 26, 2018 in Python by Priyaj
• 56,900 points
459 views