CyberStars

Python

The best place to start if you've never coded. From print and variables to functions, lists and dictionaries, then searching, sorting and recursion, modules, files and classes, ending with six small projects.

Chapters

  1. Print
  2. Variables (Strings)
  3. Variables (Integers)
  4. Print F-strings
  5. Recap: Player Card
  6. Comments
  7. If/Else
  8. If/Elif/Else
  9. Recap: Ticket Booth
  10. For Loops
  11. Input
  12. While Loops
  13. Break and Continue
  14. Booleans
  15. Recap: Launch Console
  16. Operators
  17. Functions
  18. String Methods
  19. Lists
  20. Looping over Lists
  21. Recap: Supply Run
  22. Slicing with Steps and Negative Indexes
  23. Split and Join
  24. Formatting Numbers
  25. Characters and Their Codes
  26. Recap: Systems Report
  27. Return Values
  28. Dictionaries
  29. Looping over Dictionaries
  30. Recap: Mission Control Report
  31. Tuples
  32. Sets
  33. Nested Loops
  34. List Comprehension
  35. Recap: Crew Analysis
  36. Scope
  37. Default Parameters
  38. Multiple Return Values
  39. Try / Except
  40. Recap: Telemetry Toolkit
  41. Built-in Functions
  42. Problem Decomposition
  43. Pattern: Counter
  44. Pattern: Accumulator
  45. Pattern: Flag
  46. Recap: Mission Log Analyzer
  47. Range with Steps
  48. Enumerate
  49. Zip
  50. Nested Lists and Dictionaries
  51. Recap: Cargo Manifest
  52. Keyword Arguments
  53. *args
  54. **kwargs
  55. Lambda
  56. Sorted with Key
  57. Map and Filter
  58. Recap: Crew Roster
  59. Dictionary and Set Comprehensions
  60. Generators and Yield
  61. Generator Expressions
  62. Recap: Sensor Stream
  63. Linear Search
  64. Frequency Dictionary
  65. Bubble Sort
  66. Selection Sort
  67. Recap: Mission Leaderboard
  68. Reverse a String
  69. Palindrome
  70. Anagram
  71. Filter and Transform
  72. Two Pointers
  73. Recap: Transmission Toolkit
  74. Recursion
  75. Recursion Practice
  76. Matrices (2D Lists)
  77. Binary Search
  78. Recap: Sector Scan
  79. Import
  80. The math Module
  81. The random Module
  82. The collections Module
  83. The datetime Module
  84. Recap: Launch Planner
  85. Writing a File
  86. Reading a File
  87. With
  88. Reading Line by Line
  89. JSON
  90. Recap: Station Logbook
  91. Classes and Objects
  92. __init__
  93. Methods
  94. __str__
  95. Class Attributes
  96. Recap: Robot Crew
  97. Inheritance
  98. super()
  99. Overriding Methods
  100. Comparing Objects
  101. Dataclasses
  102. Recap: Fleet Registry
  103. Raise
  104. Your Own Exceptions
  105. Else and Finally
  106. Recap: Airlock Control
  107. Project: Guessing Game
  108. Project: Quiz Game
  109. Project: To-Do List
  110. Project: Bank Account
  111. Project: Cargo Inventory
  112. Project: Grade Report