Here is where the error happened
print(f'Hey, {Username}, your password is {'*' * Password}. The password is **{len(Password)}** long.')
Here is where the error happened
print(f'Hey, {Username}, your password is {'*' * Password}. The password is **{len(Password)}** long.')
That is because you are using single quote for main string as well as '*'
.
Python interprets it as -
print( f'Hey, {Username}, your password is {'# string ends here.
*' * Password}. The password is **{len(Password)}** long.')
The last bracket goes unmatched and hence the error.
A quick fix would be to use double quotes in one of the strings.
print(f'Hey, {Username}, your password is {"*" * Password}. The password is **{len(Password)}** long.')