**Question** What is wrong with my code in line 3?

print('Hello, I am your gamemaster.')
print('Who and Why have you disturbed my slumber?')
print(f """
Pick a Choice!
[1st]. My homeland has been inflicted by a sickness and I need a cure.
[2nd]. I hear of a vast amount of treasure lies here, and I would love to make some gold.
[3rd]. I challenge all monsters and evils across the land and you are next on my list! /n
""")
choose = input("")
if choose == "1" :
  print('A cure I have, but an answer I do not. Answer me true and your village lives on.')

You cant have multiline f-strings (i think) and the f has to touch the quote anyway. You don’t use it as an f-string anyway, just delete the f.

1 Like

Oh, no the f is fine, i just had to get rid of the space. Than you.

1 Like

Hello there,
Your code is missing an indentation before the if statement. The print statements inside the if statement should be indented in order for the code to run correctly. There is also a typo in the third print statement. The /n should be \n to represent a newline character. Here is your code with all possible bugs fixed:

print('Hello, I am your gamemaster.')
print('Who and Why have you disturbed my slumber?')
print(f """
Pick a Choice!
[1st]. My homeland has been inflicted by a sickness and I need a cure.
[2nd]. I hear of a vast amount of treasure lies here, and I would love to make some gold.
[3rd]. I challenge all monsters and evils across the land and you are next on my list! \n
""")
choose = input("Enter your choice: ")
if choose == "1st" :
    print('A cure I have, but an answer I do not. Answer me true and your village lives on.')

Please mark this as solved. It appears that MrVoo1’s answer was the solution.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.