


Press twice to tell Python that there are no more statements for this block. Python “knows” that you are entering a code block so the cursor is indented.Įnter the print(i) function from I/O and you must also type the variable i inside the parentheses. Īt the Shell prompt, add the command found on Ctl: You can switch to the shell at any time to try something out.įrom the FILE MANAGER, go to and select. The Shell is a good place to test code out without writing a program. In this lesson you will use the range() function to make a for loop.įirst, do some code testing using the Python Shell to see what the range() function does in a for statement. Python’s built-in range() function is used to generate an arithmetic sequence of integers.
