look at my simple code, i just want when user put correct or wrong answer then above score in print statement update automatic.
score = 10
print("="*50 + "[ Your Score: "+ str(score) +" ]" + "="*50)
inputs = raw_input("5 + 5 = ")
if inputs == '10':
score += 10
# then i want to update the above print statement
result:
=======================[ Your Score: 10 ]=====================
5 + 5 = 10