Using string formatter for print
Reverse if logic, add KeyError exception handle