[Tutor] a question about symbol

linda.s samrobertsmith at gmail.com
Sun May 28 22:11:57 CEST 2006


On 5/28/06, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
> 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?
It is a sample code i downloaded.
I think it is the symbol put before F or C ( should be a small
circle)...\I do not know why it appeared "?"


More information about the Tutor mailing list