+ 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
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
+ 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 😆
+ 7
\n = new line.
makes the output clearer to read
+ 6
x=input("your age")
if int(x)>=18 :
print('you are able to drive')
else :
print('sorry you can not drive')
+ 6
@Daniel. Sorry. I meant you beat me to the answer!
+ 2
No problem. I thought in do the same, make "my code" and explain it but I thought too in the fast answer ;-)
+ 1
I think you need to use double quotes like this " ", instead of single quotes.
+ 1
everyone is very hospitable here
0
@Jay I cant beat you, you have disabled all weapons
0
@jay can you please tell me why have you
put \n in line 1
0
thanks buddy
- 1
thanks for the answer