0
How to iterate through a float..?
Here when i tried iterating "pi" I couldn't since its a float But when i converted it into a string..its digits is not being iterated..how to iterate through its digits? https://code.sololearn.com/cuWAgfTBBRFP/?ref=app
2 Respostas
+ 3
https://code.sololearn.com/c75dxfa0UbZD/?ref=app
Fixed it. Since you converted pi to a string, the characters will all be strings. "string == int" will always be false, and thats why it returns 0
+ 1
Oohhh yeahh Thomas Williams tnks mahnn