Category: Python

Convert and Combine Multiple Excel Files into One CSV with pandas
Read Excel workbooks and sheets with pandas, check their headers, and write one CSV while preserving text IDs. The guide also shows how to combine existing CSVs.

Python / Objects and Variables
Understand assignment as binding names to objects. Runnable examples distinguish shared lists, rebinding, immutable values, shallow and deep copies, equality and identity, del, and valid variable names.

Python / input() / Read User Input into a Variable
Read text with input(), convert and validate numbers, and handle whitespace, empty lines, multiple values and EOFError. Each example includes complete code, the input to provide and the expected program output.

Python / Package / flake8: installing and using a Python code checker
Install Flake8 in a project environment, interpret F401 and E225, and verify a corrected example. Learn how PEP 8 relates to Flake8, how .flake8 configuration works, and what a successful check does not prove.

Python / Fix 'Access is denied' When Installing with pip on Windows
Diagnose Windows pip WinError 5 using the failed path and selected Python. Prefer a project virtual environment, understand when --user applies, and verify, repair, or remove the example installation.

Python / range() / Create Consecutive or Evenly Spaced Integers
Understand start, stop, step, and the excluded endpoint in range(). Examples cover descending and empty ranges, errors, indexing, repeated iteration, enumerate(), and very large ranges.

Python / type() / Check a Value’s Data Type
Inspect type() results and compare actual types. Runnable examples cover isinstance() and inheritance, bool versus int, variable rebinding, container contents, and the limits of type hints.

Python / print() / Output Values as Text
Use print() with sep, end, file, and flush. Runnable examples distinguish formatting from the None return value and demonstrate UTF-8 file output, captured text, and common TypeError cases.

Python / How to Install PyCharm
Install current PyCharm on Windows and create a Python project. Learn which installer options to select, how free core features differ from Pro, and how to configure a virtual environment and verify the first run.

Python / len() / Return the Length of a String
Use len() to count string code points and collection items. Examples compare spaces, combining characters and emoji, and show how to enforce a UTF-8 byte limit.