- 1
help
helo x=int(input ()) print(x) Error
12 Respuestas
+ 3
My problem is solved. Thank you very much
+ 4
There's no error in your code.
+ 2
Hi
This means your input is not valid!
For example you can not multiply "hi" and 3!.
Ok, and this is the logic error that you have to enter integer number.
And finally if you want to enter string value erase the int().
+ 2
Not is an error
+ 2
Fatima Farah
1) Elaborate your question so that we can offer good explanation
2) Create your own question, don't hijack others' question to ask yours
3) Search the internet before asking. Only if you didn't get the answers on the internet, then ask questions
+ 1
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module>
start(fakepyfile,mainpyfile)
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
exec(open(mainpyfile).read(), __main__.__dict__)
File "<string>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''
[Program finished]
+ 1
رضا اصغرزاده
That means you must have entered Nothing
Just look at last error line
ValueError: invalid literal for int() with base 10: ''
Means the input is an empty string
+ 1
Please explain to me how to do string in double quotes
0
But it gives an error
0
what was your entry? maybe the problem is what you entered, the code is correct
0
number
0
I recommend 2 ways to avoid this:
1) When the dialogue box opens, enter your number(input) and give submit option. Your inputs should be given in that dialog box that comes after you press run option
2) Use Pydroid or some other Python compiler to compiler Python code. Don't use the code playground for Python