I am a newbie to Python, what am I doing wrong?
if p1_teller == 0 & p1_raw[0:1] != "/":
print "Loop 1"
else:
print "Loop 2"
Then I get the following error:
TypeError: unsupported operand type(s) for &: 'int' and 'str'
Python uses and
for logical and. &
is a bitwise and. Change your code to:
if p1_teller == 0 and p1_raw[0:1] != "/":
print "Loop 1"
else:
print "Loop 2"
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments