Skip to content

geniuslounge/python-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Cheat Sheet

A comprehensive Python reference guide deployed as a GitHub Pages website using the Modernist Jekyll theme.

🌐 Live Website

Visit the live site: https://geniuslounge.github.io/python-cheat-sheet/

📖 About This Project

This repository contains a comprehensive Python cheat sheet that covers essential syntax, concepts, and best practices. The content is presented as a beautifully styled website using GitHub Pages and the Modernist Jekyll theme.

What's Included

  • Essential Python Basics: Comments, variables, data types, and basic operations
  • Naming Conventions: PEP 8 style guide for Python code
  • Control Flow: Conditional statements and loops
  • Data Structures: Lists, tuples, sets, and dictionaries
  • Functions: Basic functions, docstrings, and parameter handling
  • Comprehensions: List, set, and dictionary comprehensions
  • String Operations: Text manipulation and formatting
  • Built-in Functions: Essential Python functions for data manipulation
  • File Operations: Reading and writing files
  • Error Handling: Try-except blocks and exception management
  • Common Modules: Standard library modules (math, random, os, sys, json, datetime)
  • Development Tools: Virtual environments and development setup

🛠️ Technical Stack

  • Jekyll: Static site generator
  • Modernist Theme: Clean, professional Jekyll theme for GitHub Pages
  • GitHub Pages: Hosting platform
  • GitHub Actions: Automated deployment workflow
  • Markdown: Content formatting

🚀 Local Development

To run this site locally for development or testing:

Prerequisites

  • Ruby (version 3.1 or higher)
  • Bundler gem

Setup

# Clone the repository
git clone https://github.com/geniuslounge/python-cheat-sheet.git
cd python-cheat-sheet

# Install dependencies
bundle install

# Serve the site locally
bundle exec jekyll serve

# Visit http://localhost:4000 in your browser

📁 Project Structure

python-cheat-sheet/
├── _config.yml              # Jekyll configuration
├── index.md                 # Main content page
├── .github/workflows/       # GitHub Actions deployment
├── Gemfile                  # Ruby dependencies
├── .gitignore              # Git ignore rules
└── README.md               # This file

🔧 Configuration

The site is configured in _config.yml with:

  • Modernist theme from pages-themes/modernist@v0.2.0
  • Site title and description
  • GitHub repository URL

📝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally with bundle exec jekyll serve
  5. Submit a pull request

📄 License

This project is open source and available under the MIT License.

🔗 Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages