0

A int can be used for keys of dictionary?

so im making my own discord bot until i got keyerror,i was wandering if int keys is allowed..

12th Aug 2019, 7:42 AM
prisma
prisma - avatar
1 Resposta
+ 1
Int is allowed. Every immutable type is, so you can also use tuples and frozensets and even types of your own design.
12th Aug 2019, 7:46 AM
HonFu
HonFu - avatar