2021年5月5日星期三

I was trying to create a superhero class in python, but when i run it, the program says File ""main.py", line 3 IndentationError: expect indentblock

Here is the exact code error that i keep getting wrong

File "main.py", line 3 def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):

IndentationError: expected an indented block

Here is the code that i have so far

you may have to make an account, but this is a solid website and you won't have to worry about signing up.

please post correct code in the comments.

https://stackoverflow.com/questions/67410588/i-was-trying-to-create-a-superhero-class-in-python-but-when-i-run-it-the-progr May 06, 2021 at 09:00AM

没有评论:

发表评论