Tony
2011-04-11 21:43:55 UTC
a=input('What number will be squared? ')
b=a*a
print('The square is ' +repr(b))
This is the output (with error message included):
What number will be squared? 5
Traceback (most recent call last):
File "Untitled", line 2
b=a*a
TypeError: can't multiply sequence by non-int of type 'str'