Skip to content

satyadeokumar/Getting-Started-with-Python

Repository files navigation

Getting Started with Python

A beginner-friendly guide to start your Python programming journey.
This repository includes simple, well-explained examples covering Python fundamentals—ideal for absolute beginners.

📌 Table of Contents

🐍 Introduction

Python is a popular programming language known for its simplicity and readability.
This repository offers hands-on examples to learn Python basics through easy-to-follow scripts.

✔️ Prerequisites

You need:

  • Basic computer skills
  • Interest in programming
  • A computer with internet access

No coding experience required.

💻 Installing Python

Windows / macOS / Linux

  1. Go to the official Python website: https://www.python.org/downloads.
  2. Download the latest stable version (Python 3.x).
  3. Run the installer.
    • On Windows: Check "Add Python to PATH".
  4. Open a terminal and verify:
    python --version
    Expected output: Python 3.x.x (e.g., Python 3.11.0).

▶️ Running Your First Python Program

Option 1: Using a Code Editor (Recommended)

  1. Install an editor like VS Code, PyCharm, or Sublime Text.
  2. Create a file named hello.py with:
    print("Hello, Python!")
  3. Open a terminal in the file's directory and run:
    python hello.py
    Output: Hello, Python!

Option 2: Using Python Shell

  1. Open a terminal and type:
    python
  2. At the prompt (>>>), type:
    print("Hello, World!")
  3. Press Enter. Output: Hello, World!
  4. Type exit() to quit.

📁 Repository Structure

Getting-Started-with-Python/
│
├── Print_Function.py
├── Numbers_and_Variables.py
├── Arithmetic_Operations.py
└── README.md

📘 Topics Covered

1. Print Function

File: Print_Function.py
Learn to display output with print():

  • Text and numbers
  • Escape characters (e.g., \n for new line)
  • Multiple values

2. Numbers and Variables

File: Numbers_and_Variables.py
Covers:

  • Data types: int, float, str
  • Variable declaration
  • Naming rules (e.g., no spaces, start with letter)
  • Basic input with input()

3. Arithmetic Operations

File: Arithmetic_Operations.py
Basic math:

  • Addition: +
  • Subtraction: -
  • Multiplication: *
  • Division: /
  • Modulus: %
  • Exponentiation: **

🧭 How to Use This Repository

  1. Clone the repo:
    git clone https://github.com/satyadeokumar/Getting-Started-with-Python.git
  2. Open the folder in your editor.
  3. Run each .py file (e.g., python Print_Function.py) to see examples.
  4. Edit and experiment to learn.

🚀 Next Steps

After basics, explore:

  • Conditionals (if/else)
  • Loops (for/while)
  • Functions
  • Data structures (lists, dicts)
  • OOP
  • Modules

📚 Resources

Additional learning materials:

Official Documentation

Online Tutorials

Books

  • "Automate the Boring Stuff with Python" by Al Sweigart.
  • "Python Crash Course" by Eric Matthes.

Communities

Practice


About

This repo is a getting started with guide for python beginners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages