+ 1

Error code

Hi, could u please help me with my code? It always says error even though the code is correct. Thank you!

26th Mar 2018, 7:32 PM
Michaela Kuttnerová
Michaela Kuttnerová - avatar
8 Antworten
+ 3
@Michaela Kuttnerová To insert code on mobile. 1.For question, Click Insert -> Insert Code -> Select your code. 2.For other, like comment, answering a Q&A Click + button-> Insert Code -> Select your code. 3.If it doesn't have way to insert, copy your code URL then paste it. ***Don't forget to update the latest version of Sololearn app***
26th Mar 2018, 10:46 PM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 1
Could you please leave a link to the code?
26th Mar 2018, 7:34 PM
TurtleShell
TurtleShell - avatar
+ 1
It works perfectly fine for me. Maybe try again? Could have been a network error. Here is your code: https://code.sololearn.com/c8V0LfsmzvQq/#py ::: INPUT :::: 123 :::: OUTPUT :::: Put number:The value of the variable a is 123 The value of the variable b is 128
26th Mar 2018, 7:35 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
And how do I post a link to my code? When I read the code it says my code needs an input, help me I’m desparate :(
26th Mar 2018, 7:38 PM
Michaela Kuttnerová
Michaela Kuttnerová - avatar
+ 1
If you're on the website copy and paste the link on your browser, I'm not sure about mobile
26th Mar 2018, 7:39 PM
TurtleShell
TurtleShell - avatar
+ 1
Well, I’m using my mobile.
26th Mar 2018, 7:42 PM
Michaela Kuttnerová
Michaela Kuttnerová - avatar
+ 1
@Michaela When it asks you for input, that's the code you wrote that's asking for the input. In your first line you have: a = int(input('Put number:')) ^That's asking you to supply a number input and it will store the input inside of the variable 'a.' So when it asks you to enter input, it's wanting you to supply the number for the input. Run your program again. When it asks for input, enter a number. If you don't, you'll get an error. Also, link to your code is: https://code.sololearn.com/c8V0LfsmzvQq/#py I don't use SoloLearn on mobile, but there is a section called 'Code Playground' or maybe 'My Code' from profile. It'll have your code listed there so you can share link.
26th Mar 2018, 7:45 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Thank you so much for ur help, it works perfectly I just had to enter a number.
26th Mar 2018, 7:52 PM
Michaela Kuttnerová
Michaela Kuttnerová - avatar