CodeSolved

Solved Programming Questions & Exercises

IndentationError error in Python

Technical question 2040/ Download 81 Views
Hi, I wrote this pumpkin but it gives me an indentation error. I don't know where the problem is. Can you help?
IndentationError: expected an indented block

for i in range(5):
print(i)

1 Answers

The correct code is this
    for i in range(5):
        print(i)

The order you want to run inside the elaboral should be ahead of that phrase above
Aerf123 Download Python

Submit answer

Submitting answers is currently unavailable.

×
×
Close