This is my program and I am getting the following mentioned error:
def main():
print "hello"
if __name__=='__main__':
main()
Error
File "hello.py", line 8
main()
^
IndentationError: expected an indented block
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should do:
It can be either spaces or tabs.
Also, the indentation does NOT need to be same across the file, but only for each block.
For example, you can have a working file like this, but it is not recommended.