You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromdataclassesimportdataclass@dataclassclassInventoryItem:
"""Class for keeping track of an item in inventory."""name: strunit_price: floatquantity_on_hand: int=0deftotal_cost(self) ->float:
returnself.unit_price*self.quantity_on_hand
The text was updated successfully, but these errors were encountered:
- Make use of dataclasses in the implementation
of NFA and DFA classes
- Format all the python code using Ruff
- Update the functions and methods docstrings
- Make use of data types hinting in the functions,
methods and classes
Refactor DFA and NFA definition to make use of dataclasses, replace
__init__
with dataclasses.Refac this...
to this...
The text was updated successfully, but these errors were encountered: