Spaces or tab used in the beginning of the code is known as indentation. Indentation is used to python to indicate which block of code a statement belongs to. You must indent each line of the block by the same amount of spaces or tabs.
Python will give you an error if you skip the indentation. The number of spaces is up to you as a programmer, but it has to be at least one. Four spaces are typical indent used in python.
Let’s go through some more examples :
This page is contributed by Diwas & Sunil . If you like AIHUB and would like to contribute, you can also write an article & mail your article to itsaihub@gmail.com . See your articles appearing on AI HUB platform and help other AI Enthusiast.
Howdy! I simply want to give you a huge thumbs up
for your excellent information you have got here on this post.
I’ll be coming back to your site for more soon. adreamoftrains
best web hosting 2020