Git Product home page Git Product logo

python-intro's Introduction

Python Intro

A Python learning tool with beginner exercises in using variables, data structures and basic control flow.

Developed by Ben Nuttall for use in Raspberry Jams, STEM activities, Code Clubs, etc.

Designed to be compatible with both Python2 and Python3.

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

Contents

  • Printing
  • Variables
  • Basic maths 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 strings
  • Splitting strings
  • Tuples
  • Dictionaries

How to use

  1. Download intro.py
    • Either click the link and save the file from your browser or use wget from the command line: wget http://goo.gl/dBpAfd -O intro.py --no-check-certificate.
  2. Open the file in IDLE3 or IDLE.
  3. Run the file with F5 to see the output
  4. Go back to the code and read the instructions, edit away, save and run again.

Issues and Pull Requests

If you have an issue and don't know how to fix it, please open an issue on GitHub.

If you would like to rephrase the wording or change the code, fork this project and create a pull request against the original repository which will be reviewed by the author.

Licence

Unless otherwise specified, everything in this repository is covered by the following license:

Creative Commons License

Python Intro by Ben Nuttall is licensed under a Creative Commons Attribution 4.0 International License.

Based on a work at https://github.com/bennuttall/python-intro

python-intro's People

Contributors

bennuttall avatar jcla1 avatar qmacro avatar stevieflow avatar toastwaffle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-intro's Issues

If/Else statement

everytime i type in the word 'else' it gives me a syntaxError: invalid syntax
please advise. thanks!

Unable to download intro.py

Hi Ben,

There seems to be an issue downloading intro.py from my Raspberry Pi, both with wget and the direct download link.

wget gives the following error:
$ wget http://goo.gl/dBpAfd -O intro.py --no-check-certificate --2016-02-05 16:46:40-- http://goo.gl/dBpAfd Resolving goo.gl (goo.gl)... 216.58.213.110, 2a00:1450:4009:80f::200e Connecting to goo.gl (goo.gl)|216.58.213.110|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://raw.githubusercontent.com/bennuttall/python-intro/master/intro.py [following] --2016-02-05 16:46:40-- https://raw.githubusercontent.com/bennuttall/python-intro/master/intro.py Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 62.252.172.241 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|62.252.172.241|:443... connected. GnuTLS: A TLS fatal alert has been received. GnuTLS: received alert [0]: Close notify Unable to establish SSL connection.

Clicking https://raw.githubusercontent.com/bennuttall/python-intro/master/intro.py gives the following:
Error performing TLS Handshake: GnuTLS internal error

I've tried on a couple of my Pi's with no luck, both Jessie and Wheezy. However clicking the link on my MacBook works fine, so it seems to be a Raspberry Pi issue...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.