Great Guessing Game!
JosiahKnisely (26)

I made this guessing game in about 20 minutes. It was my first ever Python project and I think it went pretty well! Upvote if you like it, so other people can see it.

You are viewing a single comment. View All
CodeLongAndPros (105)

@JosiahKnisely A f-string is like a raw string, or a bytes object, in a way. You make an f-string by prefixing f to your quotes:

f'Hello World'

These work like regular strings, but with one feature:
You can embed variables and python expressions in {}

x = "Hello"
y = "World"
print(f'{x} {y}')
Hello World

These make your code more readable than raw concats, and are good practice, in my opinion.

NOTE: You HAVE to have Python 3.6 or greater to use f-strings!