Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Python Self-Study 1

To prepare for Predictive Stepping and Documenting and Testing, you should be comfortable running simple Python scripts from the command line in VSCode. You don't need to be comfortable writing programs just yet.

You should be familiar with language features listed below, and can study them using your favorite online resources in a language you are comfortable with. You do not need to master them before the workshop, we will learn how to study Python for mastery in the workshop:

  • Comments: # a comment, """ a multi-line string used as a comment """
  • Input/Output: input(), print()
  • Variables
  • Data Types: str, bool, int, float, isinstance()
  • Basic Operators: ==, !==, >=, <=, <, >, and, or, not, +, -
  • Asserting: assert
  • String Manipulation: indexed access, slicing, .length, .replace(), .upper(), .lower(), .strip(), len(), in
  • Iteration: range()
  • Control Flow: conditionals, while loops, for-in loops
  • Functions: declaring, calling, parameters vs. arguments, return values
  • Lists: indexed access, slicing, .append(), .insert(), len()
  • Pass: write pass in a block to leave it empty without a syntax error
Morty Proxy This is a proxified and sanitized view of the page, visit original site.