question about True values
Paul Rubin
http
Wed Oct 25 15:20:53 EDT 2006
More information about the Python-list mailing list
Wed Oct 25 15:20:53 EDT 2006
- Previous message (by thread): question about True values
- Next message (by thread): question about True values
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"John Coleman" <jcoleman at franciscan.edu> writes: > > then "x == 3" is false, but "int(x) == 3" is true. > But then why is 3.0 == 3 true? They are different types. The 3 gets converted to float, like when you say x = 3.1 + 3 the result is 6.1.
- Previous message (by thread): question about True values
- Next message (by thread): question about True values
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list