All Tracks/workshop musical instrument inventory/
Đang tải...
Hướng dẫn thử thách
1 / 13

Step 1

In this workshop, you'll get some practice with Python's classes and objects by building a musical instrument inventory. To define a class in Python, use the `class` keyword followed by the class name and a colon. ```python class ClassName: # class contents go here ``` Remember that in Python, class names typically use PascalCase, which means each word starts with an uppercase letter with no spaces between words. Start by creating a class called `MusicalInstrument`. Add `pass` as the body of the class for now.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.py
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.