Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.57 KB

learning_goals.md

File metadata and controls

64 lines (49 loc) · 1.57 KB

1 First Steps

  • Data types: int(), float(), str(), list()
  • Builtins: print(), input(), range(), len()
  • keywords: if, for
  • operators: +-*/ =>< and or

1.1 Installation

  • install Anaconda
  • start Spyder
  • create a .py file
  • use keyboard shortcuts
  • know where the official Python documentation is

1.2 Hello World

  • read data from the keyboard
  • store a string in a variable
  • print the contents of a variable
  • comment your code

1.3 Python as a calculator

  • use the arithmetical operators (+ - * / ** // %)
  • distinguish integer and float numbers
  • convert integers, floats and strings
  • use functions from the math module
  • look up functions from the math module
  • calculate absolute and rounded values

1.4 Lists

  • store data in a list
  • create data with range()
  • examine the length of a list
  • sort and slice lists
  • draw a bar plot

1.5 Loops

  • iterate over lists and ranges using a for loop
  • indent a code block
  • distinguish iterables and loop variables
  • count the current iteration using a variable
  • collect results of a calculation in a list

1.6 Conditions

  • write if..elif..else statements
  • count items in a list by a condition
  • filter a list by a condition
  • combine comparison operators with boolean logic
  • modify every second entry of a list
  • enumerate operators you can use in comparisons

1.7 Debugging

  • code, run, debug and repeat
  • recognize and fix SyntaxErrors
  • recognize and fix IndentationErrors
  • recognize and fix runtime Exceptions
  • execute code partially and inspect the result
  • look up the documentation of functions