bitwsie operator help please
David In VA
me at mindspring.com
Sun Sep 16 20:38:46 EDT 2001
More information about the Python-list mailing list
Sun Sep 16 20:38:46 EDT 2001
- Previous message (by thread): bitwsie operator help please
- Next message (by thread): bitwsie operator help please
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am not sure how to properly write the bitwise operator but I think it will be useful for some thing I need to do. If I want to print "Hello" if the value 2^2 (4) is in a given value (lets say testvalue) how would I do this? I have been trying this if 4 & testvalue: print "hello" This isn't working. Can someone please point me in the correct direction? Tanks, David
- Previous message (by thread): bitwsie operator help please
- Next message (by thread): bitwsie operator help please
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list