0

(Soluciónado)

x = int(input()) y = input() error (Solved)(soluciónado)

15th Oct 2023, 4:44 AM
Dorian Estévez
Dorian Estévez - avatar
32 ответов
+ 1
Please write your code in the description not in title. Title's code has no problem. x = int(input()) y = input() And yet you put "dictionaries" in the tag, I think there is more in your code...
15th Oct 2023, 5:21 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 1
Ok
15th Oct 2023, 7:44 PM
Dorian Estévez
Dorian Estévez - avatar
+ 1
I already realized the code is fine, what happens when I enter the entry, I only wrote one result when there were two, I'm sorry for all the headache I caused you because of my stupidity
15th Oct 2023, 8:43 PM
Dorian Estévez
Dorian Estévez - avatar
0
I put dictionaries because I am using two inputs and I get an error when producing the output. I don't understand why the error I get is: when reading a line
15th Oct 2023, 3:36 PM
Dorian Estévez
Dorian Estévez - avatar
0
You can follow below instructions to post your code here then we can examine it. https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
15th Oct 2023, 4:04 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
https://code.sololearn.com/cGNss2GanKe4/?ref=app
15th Oct 2023, 4:38 PM
Dorian Estévez
Dorian Estévez - avatar
0
The variable x has nothing to do with the code, I only place it so you can see that it gives me an error
15th Oct 2023, 4:39 PM
Dorian Estévez
Dorian Estévez - avatar
0
I don't see any error. I input 123 abc in the box when I hit RUN. Are you receiving some kind of EOF error?
15th Oct 2023, 4:43 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
I'm going to try your entries to see if I get an error.
15th Oct 2023, 4:44 PM
Dorian Estévez
Dorian Estévez - avatar
0
Please remember the code playground is not interactive. You have to provide ALL inputs, each on separate line, before hitting RUN.
15th Oct 2023, 4:44 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
Ok
15th Oct 2023, 4:45 PM
Dorian Estévez
Dorian Estévez - avatar
0
I am working by cell phone, I have to try it on my computer, I tried as you told me but anyway it gave me an error, I will try it on the computer
15th Oct 2023, 4:48 PM
Dorian Estévez
Dorian Estévez - avatar
0
It should works the same. Please write the error message then we can study more.
15th Oct 2023, 4:50 PM
Wong Hei Ming
Wong Hei Ming - avatar
0
Ok
15th Oct 2023, 4:52 PM
Dorian Estévez
Dorian Estévez - avatar
0
Dorian Estévez , This is why it's useful to post your actual code. I found the bug. You forgot to put a comma at the end of line 7. What a difference 1 character can make. Eh? You can put [SOLVED] in your title. [Edit] OK, you've apparently been rewriting and saving your code while I was reading it, which makes it hard for the reader, so the line numbers are different. The line missing the comma is this. 3:"edad del usuario" There's a habit you can adopt that is to put a comma after every item in your list, dictionary, tuple, argument list, etc., INCLUDING THE LAST ITEM. Python allows a comma after the last item. It makes rearranging the items by copying and pasting easier. It makes adding items easier. In the version I saw before, you had a third dictionary item after the line above, but no comma separating them.
15th Oct 2023, 4:54 PM
Rain
Rain - avatar
0
x:"hola" ^ SyntaxError: invalid syntax
15th Oct 2023, 4:56 PM
Dorian Estévez
Dorian Estévez - avatar
0
4:x SyntaxError: invalid syntax
15th Oct 2023, 4:57 PM
Dorian Estévez
Dorian Estévez - avatar
0
X = input() EOFError: EOF when reading a line
15th Oct 2023, 4:57 PM
Dorian Estévez
Dorian Estévez - avatar
0
those are the three errors that the code gives me
15th Oct 2023, 4:58 PM
Dorian Estévez
Dorian Estévez - avatar
15th Oct 2023, 5:01 PM
Dorian Estévez
Dorian Estévez - avatar