Re: [Tutor] Issue with string method: str(variable ** n)

2013-05-16 Thread Rafael Knuth
Thank you - that makes perfectly sense. Also, I am new to the list, and I appreciate your suggestion. I will include error tracebacks in the future. All the best, Rafael On Thu, May 16, 2013 at 9:14 PM, Dave Angel wrote: > On 05/16/2013 02:58 PM, Rafael Knuth wrote: > >> Hej, >> >> I wrote a

Re: [Tutor] Issue with string method: str(variable ** n)

2013-05-16 Thread Zachary Ware
On Thu, May 16, 2013 at 1:58 PM, Rafael Knuth wrote: > Hej, Hi Rafael, > I wrote a tiny little program which I was hoping would take a number as > input, square and print it: > > square = input ("Enter a number. ") > print (str(square) + " squared is " + str(square ** 2)) > > It seems I can't wo

Re: [Tutor] Issue with string method: str(variable ** n)

2013-05-16 Thread Dave Angel
On 05/16/2013 02:58 PM, Rafael Knuth wrote: Hej, I wrote a tiny little program which I was hoping would take a number as input, square and print it: square = input ("Enter a number. ") print (str(square) + " squared is " + str(square ** 2)) It seems I can't work with variables within the str()

[Tutor] Issue with string method: str(variable ** n)

2013-05-16 Thread Rafael Knuth
Hej, I wrote a tiny little program which I was hoping would take a number as input, square and print it: square = input ("Enter a number. ") print (str(square) + " squared is " + str(square ** 2)) It seems I can't work with variables within the str() string method, and I was wondering if anyone