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
13
thinkcspy/Chapter-8-Exercises/Problem3.py
Normal file
13
thinkcspy/Chapter-8-Exercises/Problem3.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 8
|
||||
# Problem 3
|
||||
|
||||
def is_prime(n):
|
||||
# your code
|
||||
|
||||
for i in range (2, n):
|
||||
if n % i == 0:
|
||||
return False
|
||||
return True
|
||||
|
||||
print(is_prime(25))
|
||||
Loading…
Reference in a new issue