Posts by Breno Faria • 125 points
3 posts
-
3
votes2
answers454
viewsQ: How to clone a list with Python 3?
From list m: m = [[' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' # ', ' # ', ' # ', ' # ', ' # ', ' # '], [' #…
-
4
votes1
answer904
viewsQ: What would be the equivalent of find for lists in python?
What would be the equivalent of find used in strings to use in lists? For example, if it is a=['a','b','c'], as return to position 1 of 'b'?
-
4
votes2
answers475
viewsQ: Why in Python 0.03 % 0.01 = 0.009999999999998 and not 0?
>>> 0.03 % 0.01 0.009999999999999998 Why gives this result, the rest of the division being 0? And also, instead of 3, give: >>> 0.03 // 0.01 2.0…