Okay so how could I make my code so instead of putting 1 to 4 I could just put in a keyword like \"Freezing\" or \"Froze\" How could i put a keyword searcher in my code, all hel
You are looking for an enum
from enum import Enum class Status(Enum): NOT_ON = 1 FREEZING = 2 CRACKED = 3 WATER = 4
Then in your if checks, you do something like this:
if
if problemselect == Status.NOT_ON: ... elif problemselect == Status.FREEZING: ...