Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~$ python3
- Python 3.10.5 (main, Jun 8 2022, 09:26:22) [GCC 11.3.0] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> CACHE_SZ = 64
- >>> [[0]*16]*(CACHE_SZ/16)
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- TypeError: can't multiply sequence by non-int of type 'float'
- >>> [[0]*16]*(CACHE_SZ//16)
- [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement