wip on rask 6
This commit is contained in:
@@ -3,7 +3,21 @@ import datetime
|
||||
class Exercise00:
|
||||
STUDENT_NAME = "Eggert Jung"
|
||||
|
||||
def __init__(self, txt=""):
|
||||
self.__txt = txt[:17] + "..."
|
||||
|
||||
@staticmethod
|
||||
def deadline(formatstr):
|
||||
time = datetime.datetime(2020, 11, 11, 11, 59)
|
||||
return time.strftime(formatstr)
|
||||
|
||||
@property
|
||||
def txt(self):
|
||||
return self.__txt
|
||||
|
||||
def format(self, mode):
|
||||
if mode == "order":
|
||||
return "{2} - {1} - {0}"
|
||||
|
||||
if mode == "dict":
|
||||
return "x, y = ({x}, {y})"
|
||||
|
||||
Reference in New Issue
Block a user