Python Forum

Full Version: Assist with calculation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am writing a short program to count the number of times a digit appears in a large number but I can’t think of what math I would use to do this. I have no code to post as I can’t start until I figure out the math.
convert number to string
get length of string
(Nov-09-2018, 10:57 AM)Larz60+ Wrote: [ -> ]convert number to string
get length of string

Thank you