Turtle Graphics

Coding Basics in Python

Source file name ends with a “.py” extension

Indentation is necessary for specifying blocks of code

Some code here -Block1-:
   Code Inside Block1
   Code Inside Block1
   Inner code block:
      Code inside the inner block
      Code inside the inner block
Code Outside of Block1

Indentation must be equal number of spaces or tabs for the same block of code.

Either space or tab should be preferred in a single source file, a mixture of these characters is not advised due to compatibility issues among different computer systems.

First line of the code should not be indented.

Indentation is required after function and class declarations, and conditional statements (if-elif-else, for, while).