tutorium 06
This commit is contained in:
8
Tutorium/tut06/src/problem_with_annotations.py
Normal file
8
Tutorium/tut06/src/problem_with_annotations.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from mylist import MyList
|
||||
|
||||
lst: MyList[int] = MyList()
|
||||
lst.push_back(0)
|
||||
lst.push_back(1)
|
||||
print(lst) # [0, 1]
|
||||
lst.push_back("haha not a number")
|
||||
print(lst) # [0, 1, haha not a number]
|
Reference in New Issue
Block a user