Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Analytics-89/dd873af601f890a4dd235052cbdd112e to your computer and use it in GitHub Desktop.
Save Analytics-89/dd873af601f890a4dd235052cbdd112e to your computer and use it in GitHub Desktop.
indented block error
Hi Iam getting error for the below code in Mu editor .. can anyone help me here to understand the reason
name ='marry'
password == 'swordfish'
if name == 'marry':
print('Hello,marry')
if password == 'swordfish':
print('Access granted.')
else:
print('wrong password.')
Error: File "c:\users\barnana dutta\smart parking\python_programe_files\while_loop.py", line 5
print('Hello,marry')
^
IndentationError: expected an indented block
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment