+ 1

Please help anybody

my python code is not running correctly so please tell me the error in my code. it's name is ans https://code.sololearn.com/cFe96Ab1MP5W/?ref=app https://code.sololearn.com/cFe96Ab1MP5W/?ref=app

30th Aug 2017, 1:50 PM
vansh
vansh - avatar
12 Respuestas
+ 11
beat me @Daniel! @Vansh. Follow the error messages 1. Indentation 2. str to int conversion https://code.sololearn.com/ccTsR1RKlTL8/?ref=app
30th Aug 2017, 2:03 PM
jay
jay - avatar
+ 8
@Vansh. I would really appreciate it if you gave Daniel best answer. His was the first correct answer after all 😀 You dont have to, but I would like it if you did. It is upto you what you do 😆
30th Aug 2017, 2:32 PM
jay
jay - avatar
+ 7
\n = new line. makes the output clearer to read
30th Aug 2017, 2:29 PM
jay
jay - avatar
+ 6
x=input("your age") if int(x)>=18 : print('you are able to drive') else : print('sorry you can not drive')
30th Aug 2017, 1:59 PM
Daniel
Daniel - avatar
+ 6
@Daniel. Sorry. I meant you beat me to the answer!
30th Aug 2017, 2:30 PM
jay
jay - avatar
+ 2
No problem. I thought in do the same, make "my code" and explain it but I thought too in the fast answer ;-)
30th Aug 2017, 3:16 PM
Daniel
Daniel - avatar
+ 1
I think you need to use double quotes like this " ", instead of single quotes.
30th Aug 2017, 1:56 PM
Bagshot
Bagshot - avatar
+ 1
everyone is very hospitable here
30th Aug 2017, 2:13 PM
vansh
vansh - avatar
0
@Jay I cant beat you, you have disabled all weapons
30th Aug 2017, 2:13 PM
Daniel
Daniel - avatar
0
@jay can you please tell me why have you put \n in line 1
30th Aug 2017, 2:27 PM
vansh
vansh - avatar
0
thanks buddy
30th Aug 2017, 2:30 PM
vansh
vansh - avatar
- 1
thanks for the answer
30th Aug 2017, 2:13 PM
vansh
vansh - avatar