Создал(а) 'tested_code/__init__.py'
This commit is contained in:
parent
579ae57abf
commit
fc59e157eb
11
tested_code/__init__.py
Normal file
11
tested_code/__init__.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
def fibonacci(n):
|
||||
if n == 1:
|
||||
return 1
|
||||
return fibonacci(n-1) + fibonacci(n-2)
|
||||
|
||||
def is_palindrome(str):
|
||||
reversed_str = ''.join(reversed(str))
|
||||
if str == reversed_str:
|
||||
return True
|
||||
else:
|
||||
return False
|
Loading…
Reference in a new issue