Introduction to Python in Squish

Last edited on

General Python Resources

Squish Python Basics

Printing / Outputting Values

Comments

Variables

String Data Type

Integer Data Type

If Statement

Conditions

Indentation matters in Python

Lists

For Loops

*It is possible to iterate over the values of a list or the characters of a string value directly:

def main():
    my_list = ["Hello", "world", "."]

    for current_list_value in my_list:
        test.log("Current list value: {}".format(current_list_value))
test.py

While Loops

Exiting Loops

Functions