New: Complete Beginner's Guide to Coding is now available in Premium
Updated: Indian Govt Exam roadmaps now include salary breakdowns & timelines
Tip: Use the Career Hub to explore all career paths in one place

Python for Beginners — Learn Coding in 1 Hour

Zero coding experience? Perfect. In the next 60 minutes, you'll go from "what is Python?" to writing a working program. This crash course covers the 20% of Python that handles 80% of real-world tasks. By the end, you'll build a mini project.

⏱️ 1 Hour 🆕 Zero Experience OK 🏗️ Build a Project
You don't need to install anything. Go to replit.com, create a free account, click "Create Repl" → Python → and follow along. Every code block below is something you can type and run immediately.

Your 1-Hour Plan

0-10 min
Print & Variables
10-20 min
Input & If/Else
20-35 min
Loops & Lists
35-50 min
Functions
50-60 min
Mini Project!

⏱️ Minute 0-10: Print & Variables

# Your FIRST Python program!
print("Hello, World!")
print("I am learning Python!")

# Variables — store data
name = "Rahul"
age = 20
city = "Mumbai"

# Use variables in print
print(f"My name is {name}")
print(f"I am {age} years old")
print(f"I live in {city}")

⏱️ Minute 10-20: Input & Decisions

# Get input from user
name = input("What is your name? ")
age = int(input("How old are you? "))

# Make decisions
if age >= 18:
    print(f"{name}, you can vote! ✅")
else:
    print(f"{name}, you're too young to vote ❌")
    print(f"Wait {18 - age} more years")

⏱️ Minute 20-35: Loops & Lists

# Print 1 to 10
for i in range(1, 11):
    print(i)

# List of items
fruits = ["Mango", "Apple", "Banana", "Grapes"]

# Loop through list
for fruit in fruits:
    print(f"I like {fruit}")

# List operations
fruits.append("Orange")    # Add
print(f"Total: {len(fruits)} fruits")

⏱️ Minute 35-50: Functions

# Create reusable code blocks
def greet(name):
    return f"Hello, {name}! Welcome to Python 🐍"

print(greet("Rahul"))
print(greet("Priya"))

# Function with calculation
def calculate_grade(marks):
    if marks >= 90: return "A+"
    elif marks >= 75: return "A"
    elif marks >= 60: return "B"
    else: return "C"

print(calculate_grade(85))  # A
print(calculate_grade(92))  # A+

⏱️ Minute 50-60: Mini Project — Grade Calculator!

# 🎓 Student Grade Calculator
print("=" * 30)
print("  STUDENT GRADE CALCULATOR")
print("=" * 30)

name = input("Enter student name: ")
maths = int(input("Maths marks: "))
science = int(input("Science marks: "))
english = int(input("English marks: "))

total = maths + science + english
average = total / 3
percentage = (total / 300) * 100

if percentage >= 90: grade = "A+"
elif percentage >= 75: grade = "A"
elif percentage >= 60: grade = "B"
elif percentage >= 40: grade = "C"
else: grade = "FAIL"

print(f"\n📊 Report Card for {name}")
print(f"Total: {total}/300")
print(f"Percentage: {percentage:.1f}%")
print(f"Grade: {grade}")
print("Congratulations! 🎉" if grade != "FAIL" else "Need improvement 📚")

🎉 Congratulations!

You just learned: print, variables, input, if/else, loops, lists, and functions — AND built a working project. That's more than most people learn in a week. You're officially a Python programmer!

What's Next?

Full 16-Lesson Tutorial Python Notes Projects for Resume Complete Guide

People Also Search For

python for beginners learn python in 1 hour python crash course free python for absolute beginners python first program python quick start guide