feat: Finaler Code zur Aufgabenstellung
This commit is contained in:
parent
cde7c8ecd2
commit
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