Merge pull request 'feat: Finaler Code zur Aufgabenstellung 2' (#1) from Uebung2 into uebung1
Reviewed-on: #1 Alles okay
This commit is contained in:
commit
0d3d00885c
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