There are two print statements in your code first one is Fine But the second one is having extra space and that's causing IndentationError To Solve IndentationError: unexpected indent Error You just need to have to remove unnecessary space or tab before it and your error will be solved. By removing extra space or tab your error will be resolved. Thanks.