Post

PythonPython

r
rushi chowdary

Posted on 25th April 2024|51 views

0
votes

Indentationerror: Expected An Indented Block

What does expected an indented block mean in Python?

Answers
P
Aryan Sharma

Posted on 25th April 2024

This indicates that a function should have minimum one line of code. It also means that a conditional should have minimum one line of code to continue if the condition is true. Docstrings should present in line including the remaining code within a function. To fix that issue, order the docstring.

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos