Remove .md and image files and move python files into main chapter folders
This commit is contained in:
parent
5978779a9a
commit
67806dab6a
159 changed files with 0 additions and 4562 deletions
15
thinkcspy/Chapter-9-Exercises/Problem5.py
Normal file
15
thinkcspy/Chapter-9-Exercises/Problem5.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 9
|
||||
# Problem
|
||||
|
||||
def numDigits(n):
|
||||
# your code here
|
||||
toText = str(n)
|
||||
count = 0
|
||||
|
||||
for i in range (len(toText)):
|
||||
count += 1
|
||||
|
||||
return count
|
||||
|
||||
print(numDigits(13))
|
||||
Loading…
Reference in a new issue