[Tutor] a question about symbol

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Sun May 28 17:55:25 CEST 2006



On Sun, 28 May 2006, linda.s wrote:

> When I test the following code,
> I got something like (use 80 as argument):
> 80?F=27?C
> Why '?' appear?


Hi Linda,

Let's compare the output to what we think is producing it.  The very last 
statement in the program looks like the thing we want to watch:

     print '%i\260F = %i\260C' % (int(fahrenheit), int(celsius+.5))

One thing that caught me off guard is the '\260' thing.  Can you explain 
what that is for?


More information about the Tutor mailing list