[Tutor] if

Rob rob@uselesspython.com
Sat, 5 Oct 2002 07:46:06 -0500


>>> a = 11
>>> b = 11
>>> if a==b:
	print 'a==b'


a==b
>>>

I haven't seen the rest of your code, or your syntax error, but here's a
working model. Perhaps you left off the : at the end of the *if* statement.

Rob
http://uselesspython.com

> -----Original Message-----
> From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
> reavey
> Sent: Saturday, October 05, 2002 3:05 AM
> To: tutor@python.org
> Subject: [Tutor] if
>
>
> >>>a = 11
> >>>b = 11
> >>>if a==b
>
> get a syntax error , b as a string?
>
> I have done a type(a) and type(b) both are int. class
>
>
> I've tried different test operations <,>,!=
> nothing works
>
> the above is a simplified version of a program I found at
> http://www.devshed.com/Server_Side/python/python101
> part two of wishes were Pythons on page 9
> Thanks
> Mike Re-v
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>