← Back to list

HOW I FELL IN LOVE WITH PYTHON

It felt like nothing special at first just a line of text showing up on my screen. But then I realized ,”I made the computer talk back to…

Gopichand Mandadapu · 2025-08-25 16:02 · 0 claps · 3.1 min read
#about-python
Open on Medium ↗
Wiki topics: 🔧 · Data Engineering 💑 · Relationships

HOW I FELL IN LOVE WITH PYTHON

It felt like nothing special at first just a line of text showing up on my screen. But then I realized ,”I made the computer talk back to me”. That was the spark.

I was just curious. What else could I make it do?, From that day onwards, I started learning about Python.

HOW LEARNING PYTHON CHANGED MY PATH….

Python is a high-level, interpreted programming language created by Guido van Rossum in 1991. It was designed to be simple, readable, and versatile. Unlike many programming languages, Python feels almost like English, making it easier for newcomers to learn and understand.

Features of Python

Features of Python

By using Python we can build websites and web applications using frameworks like Django or Flask, analyze and visualize data with Pandas and Matplotlib, and dive into cutting-edge fields like Artificial Intelligence and Machine Learning with TensorFlow or PyTorch. Python offers endless possibilities to create, innovate, and solve real-world problems.

Python programming has 4 main building blocks these helps in

The building blocks of python is…**

  1. Operators
  2. Data types
  3. Conditional Statements
  4. Loops**

OPERATORS :- Operators are symbols that perform operations on variables and values. Python’s main types of operators include: Arithmetic Operators: For mathematical operations.

  • (addition), — (subtraction), (multiplication), / (division), // (floor division), % (modulus), (exponentiation). Example: x = 10 + 5 # x is 15, y = 2 3 # y is 8. Comparison Operators: Compare values and return True or False. == (equal), != (not equal), <, >, <=, >=. Example: 5 == 5 # True, 10 < 5 # False. Logical Operators: Combine conditional statements. and, or, not. Example: True and False # False, not True # False. Assignment Operators: Assign values to variables.=, +=, -=, =, etc. Example: x = 5; x += 2 # x is 7. Bitwise Operators: Operate on binary digits. & (AND), | (OR), ^ (XOR), << (left shift), >> (right shift). Example: 5 & 3 # 1 (binary: 101 & 011 = 001).

DATA TYPES :- In Python, data types define the kind of values a variable can hold and are assigned dynamically. The main types include numeric types like int (whole numbers), float (decimal numbers), and complex (numbers with real and imaginary parts); text type str (strings of characters); sequence types like list (ordered and mutable), tuple (ordered and immutable), and range (sequence of numbers); mapping type dict (key-value pairs); set types set (unordered unique elements) and frozenset (immutable sets); boolean type bool (True or False); binary types bytes, bytearray, and memoryview (used for handling binary data); and a special type NoneType represented by None to indicate no value. These types allow Python to handle different kinds of data effectively. EXAMPLES:- a = 10 # int b = 3.5 # float c = 2 + 3j # complex d = “Hello” # str e = [1, 2, 3] # list f = (4, 5, 6) # tuple g = {“x”: 1, “y”: 2} # dict h = {1, 2, 3} # set i = True # bool j = None # NoneType print(type(a), type(b), type(c))

CONDITIONAL STATEMENTS :- In Python, conditional statements let programs make decisions and control the flow of execution based on conditions. The key statements are if, elif, else, and sometimes shorthand or nested forms. if statement: Evaluates a condition; if true, executes the indented code block. elif (else if): Used when multiple conditions need to be checked; executed only if all previous if/elif are false. else: Executes when none of the if or elif conditions are true. Nested if: An if inside another if to check more specific conditions. Shorthand/ternary operator: Allows writing conditions in a single line, e.g.,

EXAMPLE FOR ALL FORMS :- marks = 85 if marks >= 90: print(“Grade A”) elif marks >= 75: print(“Grade B”) elif marks >= 50: print(“Grade C”) else: print(“Fail”) LOOPS :- In Python, loops allow you to execute a block of code repeatedly either for a fixed number of times or while a condition remains true. The two main types are the for loop, used to iterate over sequences like lists, strings, or ranges, and the while loop, which runs as long as its condition evaluates to True. Python loops also support control statements such as break to exit the loop early, continue to skip the current iteration and move to the next, and pass as a placeholder when no action is needed. Additionally, an optional else clause can run after a loop finishes normally (without break). Loops are essential for automating repetitive tasks, processing data, and controlling program flow efficiently.


메타데이터
post_id
567543838065
slug
how-i-fell-in-love-with-python-567543838065
url
https://medium.com/@mandadapugopichand/how-i-fell-in-love-with-python-567543838065
canonical_url
https://medium.com/@mandadapugopichand/how-i-fell-in-love-with-python-567543838065
author_url
https://medium.com/@mandadapugopichand
status
ok
fetched_at
2026-06-20 20:29:01