Updated Readme + Wikilinks to MDlinks Conversion

This commit is contained in:
aCyberVoid 2024-11-26 13:46:57 -06:00
parent 40b8aa2927
commit a1da61e826
5 changed files with 16 additions and 18 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

View file

@ -1,5 +1,5 @@
## What is it?
Argument passing refers to how Python processes the script name and additional arguments provided during execution. These are stored as a list of strings in the `argv` variable within the `sys` module. This is a sub concept of .
Argument passing refers to how Python processes the script name and additional arguments provided during execution. These are stored as a list of strings in the `argv` variable within the `sys` module. This is a sub concept of [Invoking the Interpreter](./Invoking%20the%20Interpreter.md).
## How to Use It:
1. **Behavior of `sys.argv`**:
- The script name and additional arguments are stored in `sys.argv` as a list of strings.
@ -9,8 +9,9 @@ Argument passing refers to how Python processes the script name and additional a
- When using [`-c command`](https://docs.python.org/3/using/cmdline.html#cmdoption-c), `sys.argv[0]` is set to `'-c'`.
- When using [`-m module`](https://docs.python.org/3/using/cmdline.html#cmdoption-m), `sys.argv[0]` is set to the full name of the located module.
2. **Handling of Arguments After `-c` or `-m`**:
- Options following [`-c command`](https://docs.python.org/3/using/cmdline.html#cmdoption-c) or [`-m module`](https://docs.python.org/3/using/cmdline.html#cmdoption-m) are not processed by the Python interpreter.
- Options following `-c command` or `-m module`
- These options remain in `sys.argv` for the command or module to handle.
## References:
- Python Official Docs: [Command Line Option -c](https://docs.python.org/3/using/cmdline.html#cmdoption-c)
- Python Official Docs: [Command Line Option -m](https://docs.python.org/3/using/cmdline.html#cmdoption-m)
- Python Official Docs: [Command Line Option -m](https://docs.python.org/3/using/cmdline.html#cmdoption-m)
- Python Official Docs: [2.1.1 Argument Passing](https://docs.python.org/3/tutorial/interpreter.html#argument-passing)

View file

@ -1,6 +1,6 @@
### What is it?
Interactive mode in Python is a mode where the interpreter reads commands directly from a terminal (tty). It is designed for testing and immediate execution of commands. When Python starts in this mode, it displays a welcome message that includes the version number and prompts the user for input. The interactive mode is part of the broader functionality of the Python Interpreter, which is detailed in [[Invoking the Interpreter]].
Interactive mode in Python is a mode where the interpreter reads commands directly from a terminal (tty). It is designed for testing and immediate execution of commands. When Python starts in this mode, it displays a welcome message that includes the version number and prompts the user for input. The interactive mode is part of the broader functionality of the Python Interpreter, which is detailed in [Invoking the Interpreter](./Invoking%20the%20Interpreter.md)
### How to Use It:
#### Starting Interactive Mode
- Start Python in interactive mode by typing `python` or `python3.13` (for Python 3.13) in a terminal.

View file

@ -29,7 +29,7 @@ The Python interpreter is a program that executes Python code. It can be run int
> [!info] Personal Insight
> On my [Lenovo Legion 5](https://www.bestbuy.com/site/lenovo-legion-5-15-gaming-laptop-amd-ryzen-7-5800h-nvidia-geforce-rtx-3050-ti-8gb-memory-512gb-ssd-phantom-blue/6455136.p?skuId=6455136), purchased in July 2022 and still performing great as of today, I verified that line-editing was enabled. Using the [Windows Terminal app](https://www.microsoft.com/store/productId/9N0DX20HK701?ocid=pdpshare) as my terminal, I ran a command, `print("Hi!")`, pressed `Enter`, held the `Ctrl` key, and tapped `P`. The previous command appeared in the prompt.
1. **Modes of Operation**:
- **Interactive Mode**: Reads and executes commands interactively when standard input is connected to a tty device. See [[Interactive Mode]] for details.
- **Interactive Mode**: Reads and executes commands interactively when standard input is connected to a tty device. See [Interactive Mode](./Interactive%20Mode.md) for details.
- **Script Mode**: Executes a script when a file name is provided as an argument or via standard input.
2. **Command-Line Options**:
- **`-c command [arg] ...`**: Executes the specified statements in the command string. For details on passing arguments, see [Argument Passing](./Argument%20Passing.md).

View file

@ -1,31 +1,28 @@
## **VoidOS - A Journey of Learning and Knowledge Sharing**
![](03%20Attachments/brecht-corbeel-qHx3w6Gwz9k-unsplash%20(1).jpg)
> *Image by [Brecht Corbeel](https://unsplash.com/@brechtcorbeel) on [Unsplash](https://unsplash.com). I absolutely love this!!*
## VoidOS - A Journey of Learning and Knowledge Sharing
Welcome to **VoidOS**, a repository that began as an exploration of coding and has evolved into something much greater—a **second brain**. Here, I've documented the things that intrigue, inspire, and educate me across various topics I love. This is not just a collection of notes; it's a living, breathing testament to curiosity and lifelong learning.
### **What is VoidOS?**
### What is VoidOS?
VoidOS is a public repository of my personal learning journey:
- A space where I share notes, ideas, and resources on subjects I'm passionate about.
- Topics range from programming and software engineering to the wonders of science, philosophy, and beyond.
- It's a reflection of my growth from someone starting in software development to a deeper understanding of the world through the lens of knowledge.
### **Who is This For?**
### Who is This For?
- Aspiring developers looking for a relatable starting point.
- Curious minds eager to dive into diverse topics.
- Anyone who appreciates the journey of learning and wants to connect over shared knowledge.
### **Why I Created VoidOS**
What began as a way to land a career in software engineering has grown into a much larger mission:
1. To document the things that intrigue me.
2. To organize and share knowledge with others who might find it useful.
3. To create a resource for future reflection and collaboration.
### **What's Inside**
### What's Inside
- **Obsidian Notes:** Detailed and interconnected notes on various topics, like a second brain.
- **Programming Projects:** Examples of code that helped me learn key concepts.
- **Programming Snippets:** Examples of code that helped me learn key concepts.
- **Personal Insights:** Thoughts and reflections on what I've learned and why it matters.
### **How to Use This Repository**
### How to Use This Repository
Feel free to:
- Explore the notes to learn more about topics that catch your eye.
- Fork the repository if you'd like to organize or expand upon the content.
- Contribute by suggesting ideas, corrections, or additional resources.
### **Notes Format**
### Notes Format
All notes in this repository are written in **Markdown (.md)** format, making them easily readable and portable. Markdown is a lightweight markup language commonly used for formatting text.
### **Note-Taking Application**
### Note-Taking Application
These notes were created and organized using [**Obsidian**](https://obsidian.md), a powerful knowledge management and note-taking app. Obsidian allows for interlinked, graph-like connections between notes, making it perfect for creating a "second brain."
> *If you're using Obsidian, you can clone this repository directly into your Obsidian vault to view and explore the notes with all their connections and backlinks intact.*