0
Lists inside lists
Why is it: print([2][2]) instead of: print([2[2]]) ?
1 Answer
0
If you want to print list inside of list. Then use correct syntax. Your code is with wrong syntax.
put comma between two list like
print([2,[2]])
and in first code, you print two list without separation. Here also you have to use comma like
print([2],[2])
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
2 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes