You are on page 1of 1

Also designed to be PEP-8 compliant to encourage good coding style.

CONTENTS
with beginner exercises in using variables, data structures and basic control fl
ow. Instructions and guidance are given in comments
Printing
Variables
Unless otherwise specified, everything in this repository is covered by the foll
owing licence:
both versions of Python, but Python 3 is recommended. Read about this in our doc
umentation.
strings
Splitting strings
Tuples
Dictionaries
HOW TO USE
operators (add, subtract, multiply)
Basic variable types (strings, integers)
Concatenating strings
Casting an integer to a string
Booleans (True / False)
Inequalities (Greater Than / Less Than)
If/Else statements
Lists
List methods (append, extend)
Adding lists together with +
Sets
For Loops
Indexing
The code works in
Based on a work at
Run the command wget http://goo.gl/0ZDOdX -O intro.py --no-check-certificate and
open with idle3 intro.py &.
Run the file with F5 to see the output then go back to the code and read the ins
tructions, edit away, save and run again.
PYTHON 2 OR PYTHON 3?
LICENCE
is licensed under a Creative Commons Attribution 4.0 International Licence.
Creative Commons Attribution 4.0 International Licence
Python Intro by Ben Nuttall PYTHON INTRO
A Python learning tool in the file.
Python
Compatible with both Python 3 and Python 2.
Basic maths https://github.com/bennuttall/python-intro

You might also like