Simply add in goblingrowth
to your print as I will show below. However, the way you are looking to do this, you will have to cast your variable to a string (since your goblingrowth
is an int), which isn't very ideal. You can do this:
print(race + " growth " + str(goblingrowth))
However, it would be more proper and strongly recommended to structure your output like this instead using string formatting:
print("{0} growth: {1}".format(race, goblingrowth))
What happened above, is that you are setting the arguments in to each of those positions in the string, so {0}
indicates the first argument you are providing to format and set at that position of the string, which is race
, then {1}
will indicate the second argument provided to format, which is goblingrowth
. You actually don't need to provide those numbers but I suggest you read the documentation provided below to get more acquainted.
Read about string formatting here. It will help greatly.