// resources
Resources
All
|
Cheatsheet
Code Example
Exercise
Template
Other
Achievement
|
Basics
Control Flow
Functions
Data Structures
Modules & Packages
Projects
Object-oriented programming
|
↑ oldest first
↓ newest first
// Other
string_mistakes.py
7 mistakes almost every beginner makes with strings. Wrong way, error, right way — all in one file.
// Other
number_mistakes.py
7 mistakes almost every beginner makes with numbers. Wrong assumption, what Python actually does, and the fix.
// Other
bool_mistakes.py
6 bool mistakes almost every beginner makes. Wrong assumption, what Python actually does, and the fix.
// Other
if_mistakes.py
6 mistakes almost every beginner makes with if. Wrong way, error, right way — all in one file.
// Other
for_mistakes.py
6 mistakes almost every beginner makes with for. Wrong way, error, right way — all in one file.
// Other
pass_continue_break_mistakes.py
5 mistakes almost every beginner makes with pass, continue, and break. Pass holds, continue skips, break stops — three …
// Other
while_mistakes.py
5 mistakes almost every beginner makes with while. Infinite loops, false conditions, missing break, invalid input, off …
// Other
match_case_mistakes.py
5 mistakes almost every beginner makes with match / case. Version check, missing wildcard, case sensitivity, wildcard p…
// Other
nested_loops_mistakes.py
5 mistakes almost every beginner makes with nested loops. Indentation, break scope, counter placement, iteration count,…
// Other
functions_mistakes.py
6 mistakes almost every beginner makes with functions. Define before calling, parentheses, print vs return, code after …
// Other
list_mistakes.py
8 mistakes almost every beginner makes with lists. Wrong way, error, right way — all in one file.
// Other
dict_mistakes.py
8 mistakes almost every beginner makes with dicts. Wrong way, error, right way — all in one file.
// Other
soldiers.txt
Test file for the file reading examples. Download and place it in the same folder as your script.
// Other
soldiers.csv
Test file for the CSV examples. Download and place it in the same folder as your script.
// Other
file_mistakes.py
7 mistakes almost every beginner makes with file handling. Wrong way, error, right way — all in one file.