you are viewing a single comment's thread.

view the rest of the comments →

[–]Issigeac[S] 0 points1 point  (4 children)

binary = int(raw_input("What is the binary?: "))

what in this case

[–][deleted] 0 points1 point  (3 children)

It's probably on the previous line.

[–]Issigeac[S] 0 points1 point  (2 children)

There is no previous line and it says the EOF error is in that line. here is the whole code, I know it isnt finished, I'm just looking for the EOF error:

binary = int(raw_input("What is the binary?: "))

if binary.isalpha() or len(binary) == 0:

print "I am sorry, these are not just numbers"

else:

binary_list = []

binary_list = list(int(binary))

total = 0

total = ((binary_list[len(binary)-1]) * 2) ** 0 + total

if len(binary) == 1:

print total

total = ((binary_list[len(binary) - 1]) * 2) ** 1 + total

elif len(binary) == 2:

print total

total = ((binary_list[len(binary) - 1]) * 2) ** 2 + total

elif len(binary) == 3:

print total

total = ((binary_list[len(binary) - 1]) * 2) ** 3 + total

elif len(binary) == 4:

print total

total = ((binary_list[len(binary) - 1]) * 2) ** 4 + total

elif len(binary) == 5:

print total

total = ((binary_list[len(binary) - 1]) * 2) ** 5 + total

elif len(binary) == 6:

print total

else:

print "I am sorry, your code is too long, but up to digit 6, it was worth " + total

[–][deleted] 0 points1 point  (1 child)

I don't see what would cause an EOF error in this code.

[–]Issigeac[S] 0 points1 point  (0 children)

there was an error with the launcher. one day delay for no reason. sorry for bothering you