Skip to content

Latest commit

 

History

History
154 lines (141 loc) · 10.9 KB

README.md

File metadata and controls

154 lines (141 loc) · 10.9 KB

Book Cover

Python Crash Course a Hands-On, Project-Based Introduction to Programming

This git is my compilation of the solutions for the projects foudn within the chapters of Python Crash Course 2nd Edition. These solutions are for reference as well as for me to document my working through the book.

Solutions

Chapter 1: Getting Started

  1. helloworld.py

Chapter 2: Variables and Simple Data Types

  1. Simple Message
  2. Simple Messages
  3. Personal Message
  4. Name Cases
  5. Famous Quote
  6. Famous Quote 2
  7. Stripping Names
  8. Number 8
  9. Favorite Number

Chapter 3: Introducing Lists

  1. Names
  2. Greetings
  3. Your Own List
  4. Guest List
  5. Changing Guest List
  6. More Guest
  7. Shrinking Guest List
  8. Seeing the World
  9. Dinner Guests
  10. Every Function
  11. Intentional Error (It literally throws error)

Chapter 4: Working with Lists

  1. Pizzas
  2. Animals
  3. Counting to Twenty
  4. One Million
  5. Sum of Million
  6. Odd Nums
  7. Threes
  8. Cubes
  9. Cubes list comprehension
  10. Slices
  11. My pizzas your pizzas
  12. More Loops
  13. Buffet
  14. PEP 8
  15. Code Review

Chapter 5: if Statements

  1. If condition
  2. More if condition
  3. Alien Colors 1
  4. Alien Colors 2
  5. Alien Colors 3
  6. Stages of life
  7. Favorite fruits
  8. Hello admin
  9. No users
  10. Checking usernames
  11. Ordinal numbers

Chapter 6: Dictionaries

  1. Person
  2. Favorite Number
  3. Glossary
  4. Glossary 2
  5. Rivers
  6. Polling
  7. People
  8. Pets
  9. Favorites Places
  10. Favorite Number
  11. Cities
  12. Extensions

Chapter 7: User Input and While Loops

  1. Rental Car
  2. Restraurant Seating
  3. Multiples of Ten
  4. Pizza Toppings
  5. Movie Tickets
  6. Three Exits
  7. Infinity
  8. Deli
  9. No Pastrami
  10. Dream Vacaction

Chapter 8: Functions

  1. Message
  2. Favorite Book
  3. T-Shirt
  4. Large Shirts
  5. Cities
  6. City Names
  7. Album
  8. User Albums
  9. Messages
  10. Sending Messages
  11. Archived Messages
  12. Sandwiches
  13. User Profile
  14. Cars

Chapter 9: Classes

  1. Restaurant
  2. Three Restaurants
  3. Users
  4. Number Served
  5. Login Attempts
  6. Ice Cream Stand
  7. Admin
  8. Privileges
  9. Battery Upgrade
  10. Imported Restaurant
  11. Imported Admin
  12. Multiple Modules
  13. Dice
  14. Lottery
  15. Lottery Analysis

Chapter 10: Files and Exceptions

Chapter 11: Testing Your Code