Coder Social home page Coder Social logo

tobyhodges / itpp Goto Github PK

View Code? Open in Web Editor NEW
12.0 5.0 8.0 4.85 MB

Introduction to Python Programming

License: Other

Jupyter Notebook 97.87% Python 2.13%
course-materials python-programming python-language language-python programming-language beginner-friendly jupyter-notebooks binder exercises

itpp's Issues

Python 2 -> 3 changes

We have some legacy references that are somewhat confusing for newcomers. Listing them here for later edit.

  • The cheat sheet claims that myDict.keys() returns a list of keys when in fact it returns a view in py3
  • There are references to [range()] vs list(range()) which produce different results under Python 3 and were found to be confusing.
  • https://pyformat.info as a good resource for .format() and f-strings.
  • Relying too much on index based access can have performance impacts - mention for a, b in zip(as, bs) as alternative. Explain zip() returns generator/iterator.
  • Avoid use of .keys() in for loops.
  • Update bokeh imports - from bokeh.io import gridplot is now from bokeh.layouts import gridplot
  • Introduce with and clarify that closing files is important.
  • There are some cases of \ at the end of the line to visual line breaking. This was confusing in the context of \.format().
  • The text mentions pip install but since we are using anaconda we should probably install things with conda ...
  • A few people ran into the situation where they accidentally emptied one of the provided files by opening it in 'w' mode. Can we maybe make this more robust to avoid accidentally deleting the file or making a copy to simplify the process of recovering from this mistake.

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.