Skip to main content

0306 | Closing

The importance of comments

  • example | "comments-demo.py"
    unknown = lambda x, y: [x[i:i+y] for i in range(0, len(x), y)]

    def unknown2(x, y):
    return [y for x in list for y in x]

    # this is a comment!

    # this line too!

    print("asdasd") # end of valid python

    """
    create
    multi
    line comments
    """

    print("hello world!")

Wrap up and next steps

  • Practice, practice, practice
  • Read existing scripts and tooling
  • Modify and improve existing scripts and tooling
  • Create your own scripts and tooling
  • Approach testing from a programmer's perspective