0

What is the error in this program?

Can somebody help? https://code.sololearn.com/cCfSsIJfDd1p/?ref=app

13th Aug 2019, 6:41 PM
Geek
Geek - avatar
3 Answers
+ 2
This should be doing the trick digit=i%2
14th Aug 2019, 5:46 AM
ChrA
ChrA - avatar
+ 1
Hi. Since your output is very scientific in terms of number representation try while(i>0): digit=i%10 i=i//2 # changed here s+=str(digit) s=s[::-1] Hope this helps. Cheers. C.
13th Aug 2019, 8:26 PM
ChrA
ChrA - avatar
0
I changed it. But the output is not right
14th Aug 2019, 2:56 AM
Geek
Geek - avatar