Dan Stanzione (TACC) (original author), Steve Lantz, Adam Brazier, Chris Myers
Cornell Center for Advanced Computing

Revisions: 5/2024, 7/2021, 8/2016, 10/2014, 2/2014, 3/2013, 6/2010 (original)

At its core, programming is about representing data and transforming data through a set of operations. Python provides a number of built-in datatypes, built-in functions and operators for querying and manipulating those data, the capacity to define both new datatypes and new functions, and the ability to combine those elements in a variety of expressions. In the pages that follow, we will provide a brief introduction to some of these elements.

Objectives

After you complete this segment, you should be able to:

  • Define and manipulate objects, types, and classes in Python
  • Understanding typing in Python
  • Assign and use variables including strings
Prerequisites

This workshop assumes the reader has no prior exposure to Python. A working knowledge of UNIX/Linux and general programming concepts is assumed. The target audience is scientists and engineers using high performance computing systems who wish to boost their productivity through the use of Python.

 
©  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Inclusivity Statement