# Python Applications and Tools Covered in Day 2 of Python-100-Days: I/O Basics and Development Environments

> Master Python I/O basics and development environments including VS Code and PyCharm. Explore essential tools covered in the Python-100-Days program on Day 2.

- Repository: [骆昊/Python-100-Days](https://github.com/jackfrued/Python-100-Days)
- Tags: tutorial
- Published: 2026-02-24

---

**Day 2 of the Python-100-Days curriculum introduces fundamental Input/Output programming through the default Python REPL, enhanced IPython/Jupyter environments, Visual Studio Code, PyCharm, and basic print operations with arithmetic expressions.**

Day 2 of the *jackfrued/Python-100-Days* repository focuses on foundational **Input/Output** (I/O) concepts and the practical toolchain required to write, run, and debug Python code. According to `Day01-20/02.第一个Python程序.md`, this module transitions learners from theoretical syntax to hands-on coding by establishing interactive shells, configuring editors, and executing the first "Hello, world" program.

## Interactive Python Environments

### Default Python REPL

The curriculum begins with the built-in **REPL** (Read-Eval-Print Loop) accessed via the `python` or `python3` terminal commands. This interactive shell enables immediate execution of expressions without file creation, serving as the fastest method to test simple arithmetic and Python syntax.

```python
>>> 2 * 3
6
>>> 2 + 3
5

```

### IPython and Jupyter Notebooks

For enhanced interactivity, the tutorial introduces **IPython**, installed via `pip install ipython` and launched with the `ipython` command. The documentation in `02.第一个Python程序.md` also references **Jupyter notebooks** as a web-based environment for literate programming, positioning IPython as the gateway to browser-based development workflows.

## Code Editors and Integrated Development Environments

### Visual Studio Code

The repository identifies **Visual Studio Code** as a lightweight, extensible source-code editor suitable for Python development. The source file provides download instructions, interface screenshots, and guidance on opening `.py` files directly within the editor for immediate editing.

### PyCharm

For comprehensive project management, the curriculum covers **PyCharm** Community and Professional editions. Learners configure virtual environments, create structured projects, and execute scripts through the IDE's integrated runner, establishing professional development practices early in the learning path.

## Basic I/O Operations and Syntax

### Print Statements and Script Execution

The first practical application demonstrates the `print()` function using the canonical "Hello, world" example. The source shows the syntax `print('hello, world')` and emphasizes execution via command-line invocation rather than interactive shells.

```python

# hello.py

print('hello, world')

```

Run the script using:

```bash
python hello.py       # Windows and Linux (Python 3)

python3 hello.py      # macOS and Linux (when python points to Python 2)

```

### Arithmetic Expressions

Building on REPL fundamentals, Day 2 reinforces Python's operator usage through mathematical expressions executed directly in the interactive environment, establishing precedence rules before introducing variables.

### Code Documentation with Comments

The tutorial concludes with commenting conventions documented in the注释 (comments) section of `02.第一个Python程序.md`. Single-line comments use the `#` prefix, while block comments employ triple quotes (`"""` or `'''`), which the interpreter ignores but serve as essential documentation for code readability.

## Key Repository Files

The Day 2 curriculum is organized within specific directories of the jackfrued/Python-100-Days repository:

- **`Day01-20/02.第一个Python程序.md`**: Comprehensive tutorial covering REPL usage, IPython installation, VS Code and PyCharm setup, basic I/O, and commenting standards.
- **[`README.md`](https://github.com/jackfrued/Python-100-Days/blob/main/README.md)**: Curriculum overview providing navigation links to daily modules and learning objectives.
- **`Python学习资源汇总.md`**: Curated supplementary resources for extended I/O topics including file handling, CSV processing, and JSON serialization.

## Summary

- Day 2 of Python-100-Days establishes the essential development toolchain before advancing to complex data structures and algorithms.
- Learners master four primary environments: the **default Python REPL**, **IPython**, **Visual Studio Code**, and **PyCharm**, as implemented in `Day01-20/02.第一个Python程序.md`.
- Core I/O concepts include the `print()` function, command-line script execution, arithmetic evaluation in interactive shells, and proper comment syntax.
- The curriculum emphasizes cross-platform execution differences, specifying `python` versus `python3` invocations based on operating system configurations.

## Frequently Asked Questions

### What is the difference between the Python REPL and IPython?

The default **REPL** provides basic interactive execution through the `python` command, while **IPython** offers enhanced functionality including syntax highlighting, tab completion, and magic commands. According to the Python-100-Days source code, IPython requires separate installation via `pip install ipython` and functions as the foundation for Jupyter notebook workflows.

### Can I use Visual Studio Code instead of PyCharm for the Python-100-Days course?

Yes. The repository presents **Visual Studio Code** as a viable lightweight alternative to **PyCharm** for writing and editing Python files. While PyCharm provides integrated virtual environment management and debugging tools, VS Code offers flexibility through extensions and is fully supported by the Day 2 tutorial content.

### How do I run a Python script from the command line on Day 2?

Execute scripts using `python filename.py` on Windows systems or `python3 filename.py` on macOS and Linux systems where the `python` command defaults to Python 2. This execution method is demonstrated in the "Hello, world" section of `02.第一个Python程序.md` and represents the standard workflow for running saved programs outside the REPL.

### What commenting styles does the Python-100-Days curriculum recommend?

The curriculum teaches single-line comments prefixed with `#` for brief annotations and triple-quoted strings (`"""` or `'''`) for multi-line documentation blocks. These conventions are detailed in the注释 section of `Day01-20/02.第一个Python程序.md` and follow Python PEP 257 documentation standards.