Python Forum
Python Forum
>
Python Coding
>
Homework
> Assist with calculation
Full Version:
Assist with calculation
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
bbm8
Nov-09-2018, 09:25 AM
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.
Larz60+
Nov-09-2018, 10:57 AM
convert number to string
get length of string
bbm8
Nov-09-2018, 02:17 PM
(Nov-09-2018, 10:57 AM)
Larz60+ Wrote:
[ -> ]
convert number to string
get length of string
Thank you
Python Forum
>
Python Coding
>
Homework
> Assist with calculation