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..
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.