Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

General discussion • Re: 'int' object isn't subscriptable

$
0
0
A bytearray is subscriptable (even if it only contains one element).

The problem in your code, the part that you have not posted, is that you are trying to apply [] to an integer that is already by itself, outside of an kind of array or list or tuple.

Statistics: Posted by jojopi — Tue Oct 22, 2024 2:05 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles