Hey, since you're a beginner I would just like to give you some good tips on how to write better, cleaner, more easily readable code. The biggest thing wrong you did was using global variables. You should almost NEVER use global variables. Instead, keep the variable you need in one function, and pass it around as needed. Second, while you did a good job of breaking up tasks into functions, you could have easily made the horse and cowboy functions as one, by passing a string variable of what they would say. Third, it is very important you comment code. I can not stress how important it is to comment code. Last, keep the formatting of your code the same throughout. You did good with every function except for cowboys. In that function, the layout makes it difficult to tell what code block goes where.