D. Hartley wrote:
It gave me an error (@ Daniel's solution): global name upper not defined...?
either put
<code> from string import upper </code>
at the top of your program or just change
newchar = upper(newchar)
to
newchar = newchar.upper()