#decoder.py
#Written by Jesse Gallarzo

binInput=raw_input("Enter 4 bit binary number: ")
binValue =1
result=0

for num in binInput:
	if(num=="1"):
		result+=binValue
		binValue*=2
	else(num=="0"):
		binValue*=2
print(result)

@@ -36,58 +36,179 @@
 rzo%0A
-%0AbinInput=raw_input(%22Enter 4 bit binary number: %22)
+#add commented code to implement this script in Python 3%0A%0AbinInput=raw_input(%22Enter 4 bit binary number: %22)%0A#reverse string to account for right-to-left from binary values
 %0Abin

Update decoder.py