help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

help

helo x=int(input ()) print(x) Error

28th Sep 2021, 5:32 AM
رضا اصغرزاده
رضا اصغرزاده - avatar
12 Answers
+ 3
My problem is solved. Thank you very much
28th Sep 2021, 8:07 AM
رضا اصغرزاده
رضا اصغرزاده - avatar
+ 4
There's no error in your code.
28th Sep 2021, 5:35 AM
Rishi
Rishi - avatar
+ 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().
28th Sep 2021, 2:08 PM
Pico Soft (Less active for a while)
Pico Soft (Less active for a while) - avatar
+ 2
Not is an error
29th Sep 2021, 1:42 PM
CGO!
CGO! - avatar
+ 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
30th Sep 2021, 1:38 AM
Rishi
Rishi - avatar
+ 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]
28th Sep 2021, 5:50 AM
رضا اصغرزاده
رضا اصغرزاده - avatar
+ 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
28th Sep 2021, 6:14 AM
Hacker Badshah
Hacker Badshah - avatar
+ 1
Please explain to me how to do string in double quotes
29th Sep 2021, 8:49 PM
Fatima Farah
0
But it gives an error
28th Sep 2021, 5:40 AM
رضا اصغرزاده
رضا اصغرزاده - avatar
0
what was your entry? maybe the problem is what you entered, the code is correct
28th Sep 2021, 5:41 AM
Erlénio.RS
Erlénio.RS - avatar
0
number
28th Sep 2021, 5:45 AM
رضا اصغرزاده
رضا اصغرزاده - avatar
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
28th Sep 2021, 7:22 AM
Rishi
Rishi - avatar