Создал(а) 'tested_code/__init__.py'

This commit is contained in:
Inex Code 2022-01-10 20:59:37 +03:00
parent 579ae57abf
commit fc59e157eb
1 changed files with 11 additions and 0 deletions

11
tested_code/__init__.py Normal file
View 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