Files
eidp-2023/Tutorium/tut06/src/problem_with_annotations.py
Nils Pukropp 1ac3e3d4fe tutorium 06
2023-11-24 07:06:05 +01:00

9 lines
185 B
Python

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]