+ 1

Being Left With Tens

Hey guys, I got a little porblem. I've written my code like this: x = int(input()) print(x/10) And I thought it would tell me the tens in a 2 digit number but the checking script says the code is wrong. Do you guys have any suggestions?

11th Oct 2017, 3:03 PM
Daniel
Daniel - avatar
2 Antworten
+ 2
The checking script probably expects an integer, not a float.
11th Oct 2017, 4:19 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
from my perspective the code is right.The output would be decimal number.The playgroud doesn't work well.I checked in QPython and it works perfect.
11th Oct 2017, 3:51 PM
Highman
Highman - avatar