Jump to content

Hangman Game query in Python


vaibbhav

Recommended Posts

What's the erroneus output?

Do you end up needing monaco _ senegal?

Triple quotes (""") in python include everything inside them. This includes newline (\n) characters. To ignore the new line character, you need to place a backslash(\) before you go to your new line. Example below

countries = """algeria spain armenia barbados chile ecuador ghana jamaica luxemborg kuwait monaco \
senegal turkey"""

 

Also try using the codeblock feature so we can see the code without needing to download it.

XcQfW3F.png

A lot of the time we notice what's wrong before even needing to run it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...