Saba Usmani <sabausm...@outlook.com> Wrote in message:
>
> 

You posted in html so I can't quote your code, but why aren't you
 using int() to convert in one call? Second argument is the base
 to be used.

value = int ("10011", 2)

othervalue = int ("234") # default to decimal

-- 
DaveA

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to