Skip to content

Latest commit

 

History

History
219 lines (199 loc) · 5.03 KB

README.md

File metadata and controls

219 lines (199 loc) · 5.03 KB

CodeHS Python excersise answers

Titles & Navigation

Assignments are found under their unit and subunit folders, i.e. 2.1.4 is under Unit 2/2.1. Each excersise is found in a python file labelled with the excersise name, with any special characters removed and spaces turned into dashes, keeping only periods (for the excersise number), i.e. 3.3.6 Hello <name> becomes 3.3.6-Hello-name.

Unit 2

  • 2.1
    • 2.1.4 Stretched Slinky
  • 2.2
    • 2.2.4 Shorter Dashed Line
    • 2.2.5 Caterpiller
  • 2.3
    • 2.3.5 Rectangle
    • 2.3.6 4 Columns
  • 2.4
    • 2.4.5 Rows of Circles
    • 2.4.6 4 Columns 2.0
  • 2.5
    • 2.5.5 Hexagon
    • 2.5.6 'X' marks the spot
    • 2.5.7 Circle Pyramid
  • 2.6
    • 2.6.4 Circle Pyramid with Comments
  • 2.8
    • 2.8.4 Beaded Bracelet
    • 2.8.5 Shape Stack
  • 2.9
    • 2.9.5 Four Colored Triangles
    • 2.9.6 Colorful Bracelet
    • 2.9.7 Kid's Shapes Toy
  • 2.10
    • 2.10.4 Bubble Wrap
    • 2.10.5 Sidewalk
  • 2.11
    • 2.11.4 Dartboard
    • 2.11.5 Line of Increasing Blocks
  • 2.12
    • 2.12.4 Colored Dartboard
    • 2.12.5 Four Corners
  • 2.13
    • 2.13.4 Colorful Caterpillar
    • 2.13.5 Circle in a Square
    • 2.13.6 Snowman
  • 2.14
    • 2.14.4 Geometry 2.0
  • 2.15
    • 2.15.4 Dartboard using i
    • 2.15.5 Phone Signal
  • 2.16
    • 2.16.4 Happy Face
    • 2.16.5 Black and White Squares
  • 2.17
    • 2.17.4 Rating
    • 2.17.5 Happy-Sad Face
  • 2.18
    • 2.18.4 Increasing Squares
    • 2.18.5 Guess a Number
  • 2.19
    • 2.19.4 Guess a Number 2.0
    • 2.19.5 Circle Pyramid 2.0
    • 2.19.6 Checkboard

Unit 3

  • 3.1
    • 3.1.5 Introduce Yourself
    • 3.1.5 Introduce Yourself
    • 3.1.6 Fix This Program!
    • 3.1.7 Vertical name
  • 3.2
    • 3.2.6 Make Some Variables!
    • 3.2.7 Undefined Variables
  • 3.3
    • 3.3.6 Hello <name>
    • 3.3.7 Age
  • 3.4
    • 3.4.5 Add Parentheses
    • 3.4.8 Rectangle
  • 3.5
    • 3.5.4 Fix This Program
    • 3.5.6 Introduce Yourself, Part 2
    • 3.5.7 Rectangle, Part 2
    • 3.5.8 Rectangle, Part 3
    • 3.5.9 Recipe
  • 3.6
    • 3.6.5 Add Comments!

Unit 4

  • 4.1
    • 4.1.4 Fix This Program
    • 4.1.5 Plants
  • 4.2
    • 4.2.5 Fix This Program
    • 4.2.6 Is It Raining?
  • 4.3
    • 4.3.10 Transaction
    • 4.3.6 Old Enough to Vote?
    • 4.3.7 Positive, Zero, or Negative?
    • 4.3.9 Table Reservation
  • 4.4
    • 4.4.4 Administrators, Teachers, and Students
    • 4.4.5 Presidential Eligibility
    • 4.4.6 Presidential Eligibility- Extended
  • 4.5
    • 4.5.4 Correct Portion

Unit 5

  • 5.1
    • 5.1.6 2 Through 20 Even
    • 5.1.7 Divisibility
  • 5.2
    • 5.2.5 Counting 10 to 100 by Tens
    • 5.2.8 Average Test Score
    • 5.2.9 How Many Names?
  • 5.3
    • 5.3.7 Higher- Lower
    • 5.3.8 Higher- Lower 2
  • 5.4
    • 5.4.6 Rolling Dice
    • 5.4.7 Categories

Unit 6

  • 6.1
    • 6.1.5 Weather
  • 6.2
    • 6.2.5 Print Product
    • 6.2.6 Print Multiple Times
    • 6.2.8 Area of a Square with Default Parameters
  • 6.3
    • 6.3.5 Fix This Program!
    • 6.3.6 Adding to a Value
    • 6.3.7 Add, Subtract, or Multiply
  • 6.4
    • 6.4.4 Add One
    • 6.4.8 Sum Two Numbers
    • 6.4.9 Temperature Converter
  • 6.5
    • 6.5.5 Temperature Converter, Part 2
    • 6.5.6 Enter a Positive Number

Unit 7

  • 7.1
    • 7.1.5 Initials
    • 7.1.6 Sandwich Sandwiches
  • 7.2
    • 7.2.6 If You're Not First, You…
    • 7.2.7 Part 1, Replace a Letter
    • 7.2.8 Part 2, Replace a Letter
  • 7.3
    • 7.3.4 Find the Error
  • 7.4
    • 7.4.4 Length of User's Name
    • 7.4.7 Spelling Bee
    • 7.4.8 Keeping Count
  • 7.5
    • 7.5.5 Contains a Vowel
  • 7.6
    • 7.6.10 Part 2, Remove All From String
    • 7.6.4 ENTHUSIASM!
    • 7.6.8 What's in a Name?
    • 7.6.9 Part 1, Remove All From …

Unit 8

  • 8.1
    • 8.1.10 Coordinate Pairs
    • 8.1.7 Fix This Tuple
    • 8.1.8 Citation
    • 8.1.9 Diving Contest
  • 8.2
    • 8.2.5 Spell It Out
    • 8.2.7 Listed Greeting
  • 8.3
    • 8.3.5 Max In List
    • 8.3.6 Owls
    • 8.3.7 Exclamat!on Po!nts
    • 8.3.8 Word Ladder
    • 8.3.9 Owls, Part 2
  • 8.4
    • 8.4.11 Take a Thing Out, Sort I…
    • 8.4.12 Librarian, Part 2
    • 8.4.4 How Many Names?
    • 8.4.5 Five Numbers
    • 8.4.7 Librarian

Unit 9

  • 9.1
    • 9.1.6 Checkerboard, v1
    • 9.1.7 Checkerboard, v2
    • 9.1.8 Checkerboard, v3
    • 9.1.9 Tic Tac Toe
  • 9.2
    • 9.2.5 Divisible by 3
    • 9.2.8 Last Names
    • 9.2.9 Strings To Integers
  • 9.3
    • 9.3.6 Coordinate Pair
    • 9.3.7 Slopes
    • 9.3.9 Full Name & Citation
  • 9.4
    • 9.4.5 Phone Book
    • 9.4.6 Word Counts
  • 9.5
    • 9.5.6 Swapping
    • 9.5.7 Word Counts, Part 2

Unit 10

  • 10.1.2 Guess The Word, Part 2
  • 10.1.3 Guess The Word, Part 3
  • 10.1.4 Guess The Word, Part 4
  • 10.1.5 Guess The Word, Part 5