+ 1

[Solved] What's the matter with this code after installing matplotlib using pydroid repo app that it gives EOF error?

inp_dict = {"m": "Enter slope: ", "b": "Enter the y-intercept: ", "x1": "Enter the lower bound of x: ", "x2": "Enter the upper bound of x: "} A = [] for i in inp_dict: a = input(inp_dict[i]) # - - - > EOF A.append(a) print(A) Here's the input and output on an online editor (Programiz): Enter slope: 3 Enter the y-intercept: 5 Enter the lower bound of x: 1 Enter the upper bound of x: 5 Out: ['3', '5', '1', '5'] I commented out the lib bit later on in the original code, didn't work. I uninstalled the repo app, didn't work (Although I may have to repeat that with pydroid?) Also Error message is displayed on a new window now, as opposed to terminal part of Pydroid. And what's matplot gotta do with this anyway?(edit: other stuff's also installed?) Can someone help? If this is something specific with this editor, please let me know. Thank you.

21st Jun 2022, 5:39 PM
Korkunç el Gato
Korkunç el Gato - avatar
5 Answers
+ 1
What are your input? generally EOF error : means no input on reading...
21st Jun 2022, 6:03 PM
Jayakrishna 🇼🇳
+ 1
Jayakrishna🇼🇳 3, 5, 1, 5 The thing is EOF is thrown even before I am prompted for any input. Sorry BTW editing the question as "input & output on Programiz" right now.
21st Jun 2022, 6:04 PM
Korkunç el Gato
Korkunç el Gato - avatar
+ 1
Jayakrishna🇼🇳 It is, see, 1) It says enter this: I write the value next to it Next line 2) Says enter that: I write the value repeat till there are 4 inputs. This runs as it shoyld on an online editor. It used to run on Pydroid too. Until I went and downloaded repo and installed matplotlib. Python horror movie trailer. "One ghost..." "One noob... " "successive slaps in the unassuming face... " "left eye pops", "the noOb is born..." "coming soon... "
21st Jun 2022, 6:19 PM
Korkunç el Gato
Korkunç el Gato - avatar
+ 1
Found it!!! I'm afraid I'm going to ask about this too, I have to: The matplot part that I commented out... It was still keeping the code from working!? I removed it totally and it worked. Very weird to me...
21st Jun 2022, 7:28 PM
Korkunç el Gato
Korkunç el Gato - avatar
0
Output should be on separate lines 3 5 1 5
21st Jun 2022, 6:16 PM
Jayakrishna 🇼🇳