Ask coding questions

← Back to all posts
python
minecraftmake55 (4)

how do i have a code read the class and not the list.
https://repl.it/@minecraftmake55/halo-monopoly

Commentshotnewtop
a5rocks (577)

Basically, you want the index for Propertys to wrap around? Well, there's this handy way to do that: instead of Propertys[player1.placement].Name on line 117, try Propertys[player1.placement%len(Propertys)].Name.