## Python: Math, Less Familiar

This is post 7 of 30 in the series “Introduction to Python” Go to Chapter 6 of A Smarter Way. A. Sometimes you need to find the remainder of a division operation. Really. It sounds crazy, but you’ll see why you’d want this later. That remainder is called the modulus. And the operator that you …

## Python: Math, Familiar

This is post 6 of 30 in the series “Introduction to Python” Go to Chapter 4 of A Smarter Way. 1. Assigning a number value to a variable: my_number = 4 2. Assigning a number by doing math: another_number = 2 + 2 3. Doing math directly with variables: my_sum = my_number + another_number Exercise …

## Python: Variable Naming

This is post 5 of 30 in the series “Introduction to Python” Go to Chapter 5 of A Smarter Way. A. Variable names can’t be enclosed in quotes. B. Variable names can’t have spaces in them. C. Variable names can’t start with numbers. D. Variable names can’t be reserved words like print, if and import. …

## Python: Variables, Strings and Numbers

This is post 4 of 30 in the series “Introduction to Python” 1. Variables: What They Look Like Go to Chapter 2 of A Smarter Way. Variable names can contain letters, numbers and underscores – nothing else. And variable names must always begin with a letter or underscore, but never a number. Variable names can …

## Python: Hello World

This is post 3 of 30 in the series “Introduction to Python” We’re going to start with Chapter 1 of A Smarter Way. 1. Open a Linux terminal. Then run the command: python 2. Simple Print Output: “Hello World” print(“Hello, World!”) Older versions of Python (most often the classic 2.7) can use slightly different syntax: …

## Introduction to Python

This is post 1 of 30 in the series “Introduction to Python” Book: A Smarter Way to Learn Python, Mark Myers Lessons and Curricula I recommend studying Python from multiple sources: our book, online training and videos. Our Book We’ll cover lessons in A Smarter Way, and as we cover chapters we’ll look at the …

## Scripting : Exercise 1

This is post 5 of 19 in the series “[ Shell Scripting ]” If you’re logged in as root on a local machine, it’s time to log out for safer scripting. Re-log in as a normal user on your local Linux computer, or as your UNM account name if you’re using ssh. 1. Create a …