+ 1

How to stop this line from creating the EOF Error?

I2 = len(input()) - 2 I am trying to set this variable to the length of an input minus 2, but all I'm getting are End of File Errors, what more information does it need? If you have an answer, provide a cleaned version of this line, thanks!

15th Jun 2020, 10:55 PM
Gigabyte Masters
Gigabyte Masters - avatar
9 Answers
+ 2
nvm, thx so much!
18th Jun 2020, 3:53 PM
Gigabyte Masters
Gigabyte Masters - avatar
+ 1
Thank you Petr!
16th Jun 2020, 1:19 PM
Gigabyte Masters
Gigabyte Masters - avatar
+ 1
but still gave me the error..
16th Jun 2020, 1:23 PM
Gigabyte Masters
Gigabyte Masters - avatar
+ 1
Gigabyte Masters what you input? and how many strings?
16th Jun 2020, 1:35 PM
Petr
+ 1
I used your code. Not working
16th Jun 2020, 5:13 PM
Gigabyte Masters
Gigabyte Masters - avatar
+ 1
I input word and see result:))
16th Jun 2020, 5:30 PM
Petr
+ 1
Gigabyte Masters for input "word" result is 2
16th Jun 2020, 5:31 PM
Petr
+ 1
Oh, I inputted word, it works. But try one with 2 lines
18th Jun 2020, 3:51 PM
Gigabyte Masters
Gigabyte Masters - avatar