Compare commits
2 Commits
cde7c8ecd2
...
0d3d00885c
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d3d00885c | |||
|
|
9650692934 |
4
README.md
Normal file
4
README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Lösung zur Aufgabe OOP: Object Oriented Piracy
|
||||||
|
https://www.codewars.com/kata/54fe05c4762e2e3047000add
|
||||||
|
|
||||||
|
Aufgabe: Auswählen von Schiffen mit genug Schätze zum plündern
|
||||||
1
src/cw_aufgabe1_oop.py
Normal file
1
src/cw_aufgabe1_oop.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
class Ship:
def __init__(self, draft, crew):
self.draft = draft
self.crew = crew
def is_worth_it(self):
return self.draft - (self.crew * 1.5) > 20
|
||||||
Loading…
x
Reference in New Issue
Block a user