ndleah / python-mini-project

🙌 Welcome open-source Python mini-project contributions!
MIT License
3.07k stars 1.21k forks source link

Update hangman.py #261

Closed bahauddin-alam closed 3 months ago

bahauddin-alam commented 4 months ago

The terminal is throwing this error SyntaxWarning: invalid escape sequence '\ '

Like for this snippet print(" / \ ") Terminal throws SyntaxWarning: invalid escape sequence '\ '

I used a raw string by prefixing the string with an r.
print(r" / \ ")

Description

A short summary of what is included in your Pull Request.

Fixes #(issue_no)

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

Project

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.