Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

How do I rectify the error "unexpected indent" in python?

1 Answer

0 votes
by (106k points)

If you will do unexpected indent in python you will get an error because in Python we only use indented block instead brackets.

def test_function() : 

if 5 > 3 :

print "hello"

Related questions

0 votes
1 answer
asked Sep 11, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer
asked Feb 10, 2021 in Python by ashely (50.2k points)
0 votes
0 answers
0 votes
1 answer
asked Feb 17, 2021 in Python by laddulakshana (16.4k points)

Browse Categories

...