Session
8 new from Editing I. About 2 min.
New
Basic code completion
⌃Ctrl+SPACE
You can't remember the item's fields. List what can go after the dot.
shop – cart.py
cart.pyorder.pyitem.py
2 def __init__(self, items):
3 self.items = items
4
5 def total(self):
6 amount = 0
7 for item in self.items:
8 amount += item.
9 return amount
8:28 · LF · UTF-8 · 4 spaces · Python
or press Enter