Younger Dark
Younger Dark

Reputation: 5

Anaconda Idle - print pastes SyntaxError: invalid syntax

enter image description here

I am very new to Python. I've bought a few books and I am eager to learn from my mistakes. However, this book doesn't include why this error pops up, even though I thought I did everything correctly. I pasted a picture in for you to follow my steps!

Upvotes: 0

Views: 98

Answers (1)

toyota Supra
toyota Supra

Reputation: 4537

Python 3.6 or later. Used f-string.

print(f"Congratulations dumbass, you guessed the number in {count} tries!")

Upvotes: 1

Related Questions