I had this code:
import color Block_Color_Q = input('Robot Color: Red(1) Blue(2) Green(3) Yellow(4) Orange(5)') if Block_Color_Q == 1: Block_Color = color.red elif Block_Color_Q == 2: Block_Color = color.med_light_blue elif Block_Color_Q == 3: Block_Color=color.lime elif Block_Color_Q == 4: Block_Color = color.dandilion_yellow elif Block_Color_Q == 5: Block_Color = color.orangeLater in my code I had:
print(Block Color)What SHOULD happen is if they entered 3, than it would print(color.lime) but only half the time it works, the other half an error pops up saying
Error:Block_Color does not exist
Why????