10861/what-is-the-output-of-and-explanation
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?
It will print concatenated lists. Output would be
['abcd', 786, 2.23, 'john', 70.2, 123, 'john', 123, 'john'].
can you an example for each? READ MORE
Hello @kartik, The reverse will involve taking the ...READ MORE
If you write x.insert(2,3) and then print x ...READ MORE
Hi. @Nandini, The above code will give you ...READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Hey, all the tools that you have ...READ MORE
There are few differences between Python and ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.