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

This commit is contained in:
Inex Code 2022-01-10 20:59:37 +03:00
parent 579ae57abf
commit fc59e157eb

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