Nitpicking:
if op in "-/" and a < b:
b, a = a, b
I think you have to swap only for "-", because / shows to the user the pair "a*b" and "a".