前提・実現したいこと
8000を表示したい
ここに質問の内容を詳しく書いてください。
みんなのpythonを写経しています。
発生している問題・エラーメッセージ
File "<ipython-input-4-f2332a02e44f>", line 17
class cube(Prisom):
^
IndentationError: unexpected indent
エラーメッセージ
### 該当のソースコード class Prisom: def __init__(self, width, height, depth): self.width = width self.height = height self.depth = depth def content(self): return self.width*self.height*self.depth p1 = Prisom(10, 20, 30) p1.content() p2 = Prisom(50, 60, 70) p2.content() p1.height p2.height p1.height = 50 p1.content() class cube(Prisom): def __init__(self, length): self.width = self.height = self.depth = length c = Cube(20) c.content() ```ここに言語名を入力 ソースコード ### 試したこと インデントの調整 ### 補足情報(FW/ツールのバージョンなど) ここにより詳細な情報を記載してください。
回答2件
あなたの回答
tips
プレビュー