I am beginner of python and trying to insert percentage sign in the output. Below is the code that I've got.
print('accuracy :', accuracy_score(y_true, y_pred)*100)
when I run this code I got 50.0001 and I would like to have %sign at the end of the number so I tried to do as below
print('Macro average precision :', precision_score(y_true, y_pred, average='macro')*100"%\n")
I got error say SyntaxError: invalid syntax
Can any one help with this?
Thank you!