@kirby
I mean indices start with zero, but length of array that only has element with index 0 is still 1.
Conversation
Notices
-
m0xEE (m0xee@social.librem.one)'s status on Friday, 18-Aug-2023 19:00:20 JST m0xEE - Disinformation Purveyor :verified_think: likes this.
-
m0xEE (m0xee@social.librem.one)'s status on Friday, 18-Aug-2023 19:00:21 JST m0xEE @kirby
len(words)-1 🫣 -
this ad CAN be blocked, bitch (kirby@lab.nyanide.com)'s status on Friday, 18-Aug-2023 19:00:22 JST this ad CAN be blocked, bitch >>> words[random.randint(0, len(words))]
'Please send me a DM if you send me a follow request'
>>> words[random.randint(0, len(words))]
'Windows 10'
>>> words[random.randint(0, len(words))]
'racism'
>>> words[random.randint(0, len(words))]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list index out of range
why?