0

How to remove eof error

so im working on a simple madlibs and it keeps giving me an eof error code: loop = 1 while loop<10: #put a noun noun = input() #put a plural noun p_noun = input() #put an adjective adjective = input() #put a name noun3 = input() print("------------------------------------------------------------------------------------------------------") print("Yaseen looks like a(n)", adjective, noun3) print(noun,"went to the very", adjective, "park") print("why are there so many", p_noun) print("I hate", p_noun) print("-------------------------------------------------------------------------------------------------------") loop = loop +1

26th Apr 2022, 4:46 PM
Yaseen
Yaseen - avatar
2 Answers
+ 3
Oh yeah it's pretty simple actually, in SL code playground you have to provide all inputs beforehand, since you have some input in the while loop it will search for input that does not yet exist. This will work on an external IDE. ^^
26th Apr 2022, 4:59 PM
Maz
Maz - avatar
0
Ohh thanks!
26th Apr 2022, 5:44 PM
Yaseen
Yaseen - avatar