Why this apps showing that syntax error where vs code run it ok | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this apps showing that syntax error where vs code run it ok

https://code.sololearn.com/cdcltt2vt8M9/?ref=app

1st Mar 2022, 4:00 PM
Apu
Apu - avatar
5 Answers
+ 2
No need to read the "Lesson 2" code, just open it, and tap the Run button. It will show you how input works in SoloLearn. FF9900 had pointed out the simple solution, that is to write the two numbers to be calculated in the input dialog, one number on each line.
1st Mar 2022, 4:24 PM
Ipang
+ 6
Prakash Dhar , if you run the code as it is shown in your sample, it will take the 2 input values (strings) and is going to concatenate them as a string that is finally output. first input: 2 second input: 4 result = 24 if this code is used in a code coach exercise, it should not have any user prompt inside the input() function.
1st Mar 2022, 4:22 PM
Lothar
Lothar - avatar
+ 2
Run this code to understand how input works in SoloLearn. https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
1st Mar 2022, 4:14 PM
Ipang
+ 1
Ipang i m just a begainer. What u r asking me to follow thats a lot to understand for me. Can u just show me simple solutions
1st Mar 2022, 4:21 PM
Apu
Apu - avatar
0
I just get 1 prompt to input one number and 2nd time there is was no prompt and output was systex error lhose two line made for convert string to integer
1st Mar 2022, 4:12 PM
Apu
Apu - avatar