SyntaxFix
Write A Post
Hire A Developer
Questions
In Python 3.6, f-string is much cleaner.
f-string
In earlier version:
print("Total score for %s is %s. " % (name, score))
In Python 3.6:
print(f'Total score for {name} is {score}.')
will do.
It is more efficient and elegant.