A couple of other folks (lee1210 and eddietr) have been helping me with a binary to text program. They recommended using lists and slicing them. I am trying to get the slicing of a list to read as '23' not ('2', '3') on the print statement. I looked through the book but I could not find it. I am sure I am looking in the wrong place. Here is the code so far. How can I add the string elements into 1 new string that is something like 23456 instead of ('2','3','4' and so on)?
Code:
#Slicer test
numbers = ("1","2","3","4","5")
nums = numbers[1:3]
if nums == "23":
print "it is 23"
else:
print "this is not 23, it is ", nums