feat: add caesar cipher helper solution
This commit is contained in:
commit
4fe95ea1a0
17
.gitignore
vendored
Normal file
17
.gitignore
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Python
|
||||||
|
.venv/
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# tooling
|
||||||
|
.pytest_cache/
|
||||||
|
.ruff_cache/
|
||||||
|
|
||||||
|
# editors
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# OS noise
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Critical
|
||||||
|
.env
|
||||||
0
.pre-commit-config.yaml
Normal file
0
.pre-commit-config.yaml
Normal file
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ruff==0.15.1
|
||||||
|
black==26.1.0
|
||||||
|
pytest==9.0.2
|
||||||
|
pre-commit==4.5.1
|
||||||
8
src/oop_solution.py
Normal file
8
src/oop_solution.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
class Animal:
|
||||||
|
def __init__(self, name):
|
||||||
|
self.name = name
|
||||||
|
|
||||||
|
|
||||||
|
class Cat(Animal):
|
||||||
|
def speak(self) -> str:
|
||||||
|
return f"{self.name} meows."
|
||||||
Loading…
x
Reference in New Issue
Block a user