@pylernen: It looks like a simple conversion, but Python refuses to run it. Lock in your answer and prove you really know it. Comment what you think and tag a dev friend who needs to see this. 👇 #Python #DebugChallenge #CodingQuiz #LearnToCode
Convert to float first and then to int. That'll truncate implicitly if that's what you're shooting for
2026-10-25 02:27:42
3
DJ Mateo :
The string has to be converted to a float prior of calling int(). But why even bother converting a decimal based number to an integer? Precision has meaning in numbers
2026-10-25 01:51:50
1
Quasar :
That’s not an integer, bro
2026-10-24 22:22:15
6
B2D :
you firstly wrote to_int(value) but return int(value)
2026-10-24 23:27:46
1
bigsea2503 :
My guess is it because it is a floating number but represented as a str
2026-10-25 00:45:28
0
To see more videos from user @pylernen, please go to the Tikwm
homepage.