Last answered:

30 Jan 2023

Posted on:

28 Jan 2023

0

IndentationError

height = df_used_cars["Cars Listings"]
    ^
IndentationError: unexpected indent

how to resolve this error? and why do this type of error occur

1 answers ( 0 marked as helpful)
Instructor
Posted on:

30 Jan 2023

0

Hi Vikash,
thanks for reaching out! The reason this error occurs is likely because you have either a space or a tab empty before the line of code. A tab means something very specific in Python and that's why it's throwing the error. If your remove the spaces before your code line, you should be alright.
Hope this helps!

Best,
365 Eli

Submit an answer