Skip to content

Commit f984bca

Browse files
updaterd
1 parent 3760899 commit f984bca

File tree

101 files changed

+30429
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+30429
-0
lines changed

0-examples/intro_to_jupyter.ipynb

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "82092436",
6+
"metadata": {},
7+
"source": [
8+
"# Introduction to Jupyter Notebooks\n",
9+
"\n",
10+
"Welcome! This is an interactive Jupyter Notebook. \n",
11+
"Unlike standard Python scripts (`.py`), notebooks allow you to mix text (**Markdown**) and executable **Python** code in the same document. This is incredibly useful for learning, exploring data, and documenting your thought process."
12+
]
13+
},
14+
{
15+
"cell_type": "code",
16+
"execution_count": null,
17+
"id": "e37e8d9c",
18+
"metadata": {},
19+
"outputs": [],
20+
"source": []
21+
},
22+
{
23+
"cell_type": "code",
24+
"execution_count": null,
25+
"id": "cb205734",
26+
"metadata": {},
27+
"outputs": [],
28+
"source": [
29+
"# 1. Executing Code\n",
30+
"# Run this cell to see the output immediately below it.\n",
31+
"print(\"Hello, Jupyter!\")"
32+
]
33+
},
34+
{
35+
"cell_type": "markdown",
36+
"id": "c3bbcacd",
37+
"metadata": {},
38+
"source": [
39+
"## Variables and State\n",
40+
"\n",
41+
"One of the key features of notebooks is that variables are saved in memory after a cell is executed. You can define a variable in one cell and use it in another!"
42+
]
43+
},
44+
{
45+
"cell_type": "code",
46+
"execution_count": null,
47+
"id": "6f005059",
48+
"metadata": {},
49+
"outputs": [],
50+
"source": [
51+
"# Define variables\n",
52+
"course_name = \"Python Bro Code\"\n",
53+
"lessons_completed = 10\n",
54+
"total_lessons = 94\n",
55+
"\n",
56+
"print(f\"Welcome to {course_name}!\")"
57+
]
58+
},
59+
{
60+
"cell_type": "code",
61+
"execution_count": null,
62+
"id": "3946e585",
63+
"metadata": {},
64+
"outputs": [],
65+
"source": [
66+
"# Use variables from the previous cell\n",
67+
"progress = (lessons_completed / total_lessons) * 100\n",
68+
"print(f\"You have completed {progress:.2f}% of the course.\")"
69+
]
70+
},
71+
{
72+
"cell_type": "markdown",
73+
"id": "1c2b4d0b",
74+
"metadata": {},
75+
"source": [
76+
"## Next Steps\n",
77+
"\n",
78+
"Experiment with changing the code above and re-running the cells. Notebooks are perfect for trial-and-error programming!"
79+
]
80+
}
81+
],
82+
"metadata": {
83+
"language_info": {
84+
"name": "python"
85+
}
86+
},
87+
"nbformat": 4,
88+
"nbformat_minor": 5
89+
}

1-print/1-print.ipynb

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PavanMudigondaTR/python-bro-code/blob/main/1-print/1-print.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/PavanMudigondaTR/python-bro-code/main/1-print/1-print.ipynb)"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"# Chapter 1: Print Statement\n",
15+
"\n",
16+
"## \ud83d\udcfa Video Tutorial\n",
17+
"\n",
18+
"**Start coding with PYTHON in 5 minutes! \ud83d\udc0d** (5:13)\n",
19+
"\n",
20+
"[![Watch on YouTube](https://img.shields.io/badge/Watch-YouTube-red?style=for-the-badge&logo=youtube)](https://youtu.be/Sg4GMVMdOPo)\n",
21+
"\n",
22+
"## \ufffd\ud83d\udcda What You'll Learn\n",
23+
"In this chapter, you'll learn about the `print()` function, which is your first step in Python programming!\n",
24+
"\n",
25+
"## \ud83c\udfaf Learning Objectives\n",
26+
"- Understand what the `print()` function does\n",
27+
"- Learn how to display text to the console\n",
28+
"- Write your first Python program\n",
29+
"- Understand the basics of Python comments\n",
30+
"\n",
31+
"## \ud83d\udcd6 Concept Explanation\n",
32+
"\n",
33+
"### The print() Function\n",
34+
"The `print()` function is one of Python's built-in functions that displays output to the console/terminal. It's used to:\n",
35+
"- Show messages to users\n",
36+
"- Display results of calculations\n",
37+
"- Debug your code\n",
38+
"- Output any information you want to see\n",
39+
"\n",
40+
"### Syntax\n",
41+
"```python\n",
42+
"print(\"Your message here\")\n",
43+
"```\n",
44+
"\n",
45+
"### Key Points\n",
46+
"- Text (strings) must be enclosed in quotes (single `'` or double `\"`)\n",
47+
"- Each `print()` statement creates a new line by default\n",
48+
"- You can print numbers, text, and other data types\n",
49+
"\n",
50+
"## \ud83d\udca1 Examples\n",
51+
"\n",
52+
"### Basic Print\n",
53+
"```python\n",
54+
"print(\"Hello, World!\")\n",
55+
"```\n",
56+
"\n",
57+
"### Multiple Lines\n",
58+
"```python\n",
59+
"print(\"Line 1\")\n",
60+
"print(\"Line 2\")\n",
61+
"print(\"Line 3\")\n",
62+
"```\n",
63+
"\n",
64+
"## \u270d\ufe0f Practice Exercises\n",
65+
"1. Print your name to the console\n",
66+
"2. Print your favorite hobby\n",
67+
"3. Create a program that prints a short poem (3-4 lines)\n",
68+
"4. Print your age and favorite color on separate lines\n",
69+
"\n",
70+
"## \ud83d\ude80 Try It Yourself\n",
71+
"Modify `main.py` to print information about yourself!\n",
72+
"\n",
73+
"## \ud83d\udcdd Comments\n",
74+
"Comments are lines that Python ignores. They help explain your code:\n",
75+
"```python\n",
76+
"# This is a comment\n",
77+
"print(\"This is code\") # This is also a comment\n",
78+
"```\n",
79+
"\n",
80+
"## \ud83c\udf93 Key Takeaways from Video\n",
81+
"\n",
82+
"1. Download Python interpreter from python.org\n",
83+
"2. Install an IDE (PyCharm or VS Code) for writing Python code\n",
84+
"3. Add Python to PATH during installation (Windows)\n",
85+
"4. Create a new Python project and file\n",
86+
"5. Lists store multiple items in a single variable\n",
87+
"\n",
88+
"> \ud83d\udca1 *These points cover the main concepts from the video tutorial to help reinforce your learning.*\n",
89+
"\n",
90+
"## \ud83d\udd17 Next Chapter\n",
91+
"Continue to [Chapter 2: Variables](../2-variables/) to learn about storing data!\n",
92+
"\n"
93+
]
94+
},
95+
{
96+
"cell_type": "code",
97+
"execution_count": null,
98+
"metadata": {},
99+
"outputs": [],
100+
"source": [
101+
"# ============================================\n",
102+
"# Chapter 1: Introduction to Python Print\n",
103+
"# ============================================\n",
104+
"# The print() function is used to display output to the console\n",
105+
"# It's one of the most fundamental functions in Python\n",
106+
"\n",
107+
"# Example 1: Simple print statement\n",
108+
"# The print() function takes a string (text) as an argument\n",
109+
"print(\"I like pizza !\")\n",
110+
"\n",
111+
"# Example 2: Multiple print statements\n",
112+
"# Each print() creates a new line automatically\n",
113+
"print(\"It's my favorite food !\")\n",
114+
"\n",
115+
"# This is a comment - it's ignored by Python\n",
116+
"# Comments are used to explain code and make it easier to understand\n",
117+
"# Use # for single-line comments"
118+
]
119+
}
120+
],
121+
"metadata": {},
122+
"nbformat": 4,
123+
"nbformat_minor": 4
124+
}

1-print/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PavanMudigondaTR/python-bro-code/blob/main/1-print/1-print.ipynb) [![Kaggle](https://kaggle.com/static/images/open-in-kaggle.svg)](https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/PavanMudigondaTR/python-bro-code/main/1-print/1-print.ipynb)
2+
13
# Chapter 1: Print Statement
24

35
## 📺 Video Tutorial

0 commit comments

Comments
 (0)