Methods are actions your hero can do with their gear. Your hero has feet so he can move up, down, right, or left. At the end of each method there are parenthesis where an argument can go, shown in the example below.
Arguments in Python tell the computer details about a method or action. For example, you could tell the computer to move the hero right with hero.moveRight(), or you could use an argument to be more specific about how far you want your hero to move right. You could tell the computer to move the hero one space, two spaces, or even farther.
A string is a special piece of text information. To tell the computer about a string, surround text with quotation marks.
You can combine arguments and strings. If you write hero.moveRight(4), your hero will move to the right 4 spaces. In another example, you could tell the computer to have the hero attack with hero.attack(), if you want your hero to attack the enemy Treg, your command would be hero.attack("Treg").
Variables are symbols that represent data, but unlike arguments, variables can change. When you are fighting ogres such as Treg, it takes a long time to type in their names one by one. Imagine if you had to fight a whole army of ogres! Instead of typing their names one by one like hero.attack("Treg"), you can use variables to attack the closest ogre and then attack the next closest ogre with hero.findNearestEnemy().
Sometimes a certain piece of code needs to be repeated over and over. Maybe you need your hero to dodge a fireball or you need them to travel in a circle around and around. You can use a "while-true" loop and tell the computer to repeat an action however many times you want. In the example below, the hero needs to move through a maze with the same moves over and over. Instead of writing out each step, I can write out the series and tell the computer to repeat or loop any number of times.