'syntax error in every python scripts SyntaxError: invalid syntax

  File "account_creator.py", line 63
    username = f"{first_name}_{last_name}{random.randint(1000, 9999)}"
                                                                     ^
SyntaxError: invalid syntax

every script i run gives this error



Solution 1:[1]

You need to use a newer version of Python. Install a version of python 3.6 or newer, then your problem should be solved!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 acharb