Dark theme

So, this change has hopefully made our program much clearer - now we've just got one line that says "fight" when we fight - we've hidden away the rest of our code. This is one reason for functions - it makes it much easier to read programs. It's not unusual to see programs that look like this:

read_data()
set_up_screen()
process_data()
display_answer()

However, there is another reason for using functions: they can be made reusable...

[Home > Part 3 > Next]