Please enable JavaScript to use CodeHS

Teaching Intro to Computer Science in Python 3

Basic Python Bootcamp

Learn the basics of programming by writing programs that you can interact with using your keyboard!

Lessons

4.1 Printing in Python

  • Printing in Python
  • Printing in Python
  • Hello, world!
  • Printing Multiple Lines
  • Introduce Yourself
  • +2 more

4.2 Variables and Types

  • Variables and Types
  • Variables and Types
  • Variables in Action
  • Variable Types
  • Variable Naming
  • +3 more

4.3 User Input

  • User Input
  • User Input
  • Basic User Input
  • Type Conversion
  • Type Conversion, Part 2
  • +2 more

4.4 Mathematical Operators

  • Mathematical Operators
  • Mathematical Operators
  • Operators and Integers
  • Operator Precedence
  • Add Parentheses
  • +3 more

4.5 String Operators

  • String Operators
  • String Operators
  • Operators and Strings
  • Fix This Program
  • Team Sizes
  • +4 more

4.6 Booleans

  • Booleans
  • Booleans
  • Boolean Variables
  • Fix This Program
  • Plants

4.7 If Statements

  • If Statements
  • If Statements
  • Your First If Statement
  • If-Else Statement
  • Fix This Program
  • +2 more

4.8 Comparison Operators

  • Comparison Operators
  • Comparison Operators
  • Comparison Operators
  • High Jump
  • Roller Coaster
  • +5 more

4.9 Logical Operators

  • Logical Operators
  • Logical Operators
  • Logical Operators
  • Administrators, Teachers, and Students
  • Presidential Eligibility
  • +1 more

4.10 While Loops

  • While Loops
  • While Loops
  • Guess My Number
  • Program Tracing
  • Program Tracing, Part 2
  • +2 more

4.11 For Loops

  • For Loops
  • For Loops
  • Print 10 Numbers
  • 1 Through 10, Part 2
  • Counting 10 to 100 by Tens
  • +6 more

4.12 Break and Continue

  • Break and Continue
  • Break and Continue
  • Break
  • Continue
  • Bike Frame Size
  • +3 more

4.13 Nested Control Structures

  • Nested Control Structures
  • Nested Control Structures
  • Double For Loop
  • Average Test Score, Part 2
  • For Loop + While Loop
  • +2 more

4.14 Functions

  • Functions
  • Functions
  • Greeting
  • Extended Greeting
  • Weather

4.15 Functions and Parameters

  • Functions and Parameters
  • Functions and Parameters
  • Print a Value
  • Name and Age
  • Print Product
  • +3 more

4.16 Namespaces in Functions

  • Namespaces in Functions
  • Namespaces in Functions
  • Functions and Variables
  • Functions and Variables, Part 2
  • Fix This Program!
  • +2 more

4.17 Functions and Return Values

  • Functions and Return Values
  • Functions and Return Values
  • Return 10
  • Add One
  • Negate
  • +5 more

4.18 Exceptions

  • Exceptions
  • Exceptions
  • Enter a Number
  • Enter Name and Age
  • Temperature Converter, Part 2
  • +1 more