Nov-22-2019, 11:02 PM
You need a comma at the end of line 96. Syntax errors often don't become syntax errors until the line after the actual problem, so always watch for that.
You define valid.jobs right before checking valid.job. Could the plural be causing the problem?
There are two ways to handle long strings. Multi-line strings (using triple quotes) are a common solution:
You define valid.jobs right before checking valid.job. Could the plural be causing the problem?
There are two ways to handle long strings. Multi-line strings (using triple quotes) are a common solution:
text = """It is pitch black. You are likely to be eaten by a Grue."""Note that you don't need new line characters, you just use actual new lines. Multi-line strings can mess with your indentation, however. Another solution is that adjacent strings concatenate:
Output:>>> fred = ('it is pitch black\n'
... 'you are likely to be eatn by a grue.')
>>> fred
'it is pitch black\nyou are likely to be eatn by a grue.'
>>>
Note the parentheses, you need to make sure the second line is interpreted as part of the first line. The fact that your big string is inside a dictionary should take care of that. You can also use a backslash at the end of each line.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures