0
(Soluciónado)
x = int(input()) y = input() error (Solved)(soluciónado)
32 Respostas
+ 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...
+ 1
Ok
+ 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
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
0
You can follow below instructions to post your code here then we can examine it.
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
0
https://code.sololearn.com/cGNss2GanKe4/?ref=app
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
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?
0
I'm going to try your entries to see if I get an error.
0
Please remember the code playground is not interactive. You have to provide ALL inputs, each on separate line, before hitting RUN.
0
Ok
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
0
It should works the same.
Please write the error message then we can study more.
0
Ok
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.
0
x:"hola"
^
SyntaxError: invalid syntax
0
4:x
SyntaxError: invalid syntax
0
X = input()
EOFError: EOF when reading a line
0
those are the three errors that the code gives me