Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jcomte23/Python_vanilla/llms.txt
Use this file to discover all available pages before exploring further.
Installation and Setup
This guide will walk you through installing Python and setting up the Python Vanilla repository on your local machine so you can start learning immediately.Prerequisites
Before installing Python Vanilla, you’ll need to have Python installed on your system. Let’s verify your installation or install it if needed.Check Existing Python Installation
First, check if Python is already installed on your system by running this command in your terminal:You should see output like
Python 3.11.0 or similar. Python 3.6 or higher is recommended for this course.Installing Python
If Python is not installed or you need to update to a newer version, follow these steps:Download Python
Visit the official Python website at python.org and download the latest stable version for your operating system.
Windows
Download the Windows installer (.exe) and run it. Make sure to check “Add Python to PATH” during installation.
macOS
Download the macOS installer (.pkg) or use Homebrew:
brew install python3Linux
Use your package manager:
sudo apt install python3 (Ubuntu/Debian) or sudo yum install python3 (CentOS/RHEL)Verify Installation
After installation, open a new terminal window and verify Python is installed correctly:You should see the version number of your Python installation.
Setting Up Python Vanilla
Now that Python is installed, let’s set up the Python Vanilla repository to access all the learning materials and examples.Clone the Repository
You can clone the repository using either HTTPS or SSH. SSH is recommended if you have SSH keys set up with GitHub.
If you’re new to Git, HTTPS is simpler to get started. For SSH setup, refer to GitHub’s SSH documentation.
Explore the Structure
The repository is organized into numbered chapters. List the contents to see what’s available:You should see folders like:
01_Introduccion_a_python- Introduction to Python02_Tipos_de_variables_en_python- Variable types03_Strings- Working with strings04_Numbers- Numbers and numeric operations- And more…
Repository Structure
Understanding the repository structure will help you navigate the learning materials effectively:Chapter Organization
The repository is structured as a step-by-step learning guide:Chapters 01-07
Basic Concepts
- Variables and data types
- Strings and string manipulation
- Numbers and numeric operations
- Operators
- Conditionals and control flow
Chapters 09-12
Data Structures & Loops
- Lists and list operations
- Tuples
- Dictionaries
- Sets
- Loops and iteration
Practical Exercises
TheEjerciciosPracticos folder contains applied exercises that integrate concepts from multiple chapters:
- BMI Calculator: Calculate and interpret Body Mass Index
- Shopping Cart: Manage items and calculate totals
- Text Analyzer: Process and analyze text input
- And more!
Running Examples
Each chapter contains amain.py file with executable examples. To run any chapter:
Navigate to the Chapter
Use
cd to move into the chapter directory:Use quotes around folder names with spaces to ensure the command works correctly.
Recommended Tools
While you can use any text editor to work with Python, these tools can enhance your learning experience:Text Editors and IDEs
- VS Code: Free, powerful editor with excellent Python support
- PyCharm: Full-featured IDE designed specifically for Python
- Sublime Text: Lightweight and fast text editor
- Jupyter Notebook: Interactive environment great for learning and experimentation
Terminal Enhancement
- iTerm2 (macOS): Enhanced terminal with better features
- Windows Terminal (Windows): Modern terminal application
- Terminator (Linux): Terminal emulator with split screens
Troubleshooting
'python' command not found
'python' command not found
Try using
python3 instead of python. On some systems, especially Linux and macOS, Python 3 is accessed via python3.If that doesn’t work, Python may not be in your PATH. Reinstall Python and ensure you check the “Add to PATH” option during installation.Permission denied when running scripts
Permission denied when running scripts
On Linux or macOS, you may need to make the script executable:Or run with explicit python command:
Git clone fails
Git clone fails
If you get authentication errors with SSH, switch to HTTPS method:If Git is not installed, install it from git-scm.com.
Wrong Python version
Wrong Python version
If you have multiple Python versions installed, you can specify which one to use:Replace
3.11 with your desired version number.Next Steps
Congratulations! You now have Python and the Python Vanilla repository set up and ready to go. You’re ready to start your learning journey:- Begin with Chapter 01 - Introduction to Python
- Work through each chapter sequentially
- Experiment with the code examples
- Complete the practical exercises to reinforce your learning
Remember: Learning to code is a journey. Take your time with each concept, experiment freely, and don’t be afraid to make mistakes—that’s how you learn!