Im honestly going to die in this class! We have a project that we need to do on adding binary numbers and I cannot manage to get past the first step...checking the users strings for 1's and 0's. If it contains anything else...the code is supposed to reject the users input, but I cant figure out exactly what im doing wrong here! Can anyone help me?
binStr = raw_input('Please input a binary number:')
if '1' and '0' in binStr:
print "Good"
else:
print "must contain only 1's and 0's!"
After this, we are supposed to write code that can add the binary numbers. Any guidance you guys have and examples on this, I would very much appreciate. I have never programmed before, this is my first time taking a programming course, I dont want to skip out on this project becuase I cant figure it out. Please help me :)