📘 Python Learning Series – Day 4 🐍 Continuing my Python learning journey, today I explored Python Operators. 🔹 What are Operators? Operators are symbols used to perform operations on variables and values. 🔹 Types of Operators in Python 1️⃣ Arithmetic Operators – Used for mathematical operations Examples: "+", "-", "*", "/", "%", "**" 2️⃣ Comparison Operators – Used to compare two values Examples: "==", "!=", ">", "<", ">=", "<=" 3️⃣ Logical Operators – Used to combine conditions Examples: "and", "or", "not" 🔹 Example Code a = 10 b = 5 print(a + b) # Addition print(a - b) # Subtraction print(a * b) # Multiplication print(a > b) # Comparison print(a == b) # Equality 🔹 Output 15 5 50 True False 📌 Key Points ✔ Operators help perform calculations and comparisons ✔ Python provides different types of operators ✔ They are essential for writing logical programs 📅 Next Post: Day 5 – Python If-Else Statements Follow along as I continue sharing daily Python notes 🚀 #Python #PythonLearning #CodingJourney #LearnPython #Programming #Developers
Python Operators Explained
More Relevant Posts
-
🚀 Learning Python – Multiplication Table Program 1.Today I practiced a simple Python program to print the multiplication table of a number. Here’s the code 👇 n = 10 for i in range(1, 11): print(n, '*', i, '=', (n * i)) ✅ Output: 10 * 1 = 10 10 * 2 = 20 10 * 3 = 30 10 * 4 = 40 10 * 5 = 50 10 * 6 = 60 10 * 7 = 70 10 * 8 = 80 10 * 9 = 90 10 * 10 = 100 🚀 Learning Python – Even/Odd & Number Check 2.Today I worked on a simple Python program to check whether a number is positive, negative, or zero. Here’s the code 👇 n = 10 if n % 2 == 0: print('The positive number:', n) elif n == 0: print('The negative number:', n) else: print('zero') ✅ Output: The positive number: 10
To view or add a comment, sign in
-
🚀 Python Series – Day 6: Conditional Statements (if-else) Till now, we learned how to take input and use operators 💻 But how does a program make decisions? 🤔 👉 Using Conditional Statements 🔥 🧠 What is a Condition? A condition checks whether something is True or False ✅ Basic if Statement age = 18 if age >= 18: print("You are eligible to vote") 🔁 if-else Statement age = int(input("Enter your age: ")) if age >= 18: print("Eligible") else: print("Not Eligible") 🔄 if-elif-else (Multiple Conditions) marks = int(input("Enter marks: ")) if marks >= 90: print("Grade A") elif marks >= 75: print("Grade B") elif marks >= 50: print("Grade C") else: print("Fail") ⚠️ Important Rule 👉 Indentation matters in Python! Incorrect: if age >= 18: print("Eligible") Correct: if age >= 18: print("Eligible") 🎯 Why is this important? ✔ Used in decision making ✔ Used in real-world logic ✔ Used in every program ❓ Question for you: What will be the output? x = 10 if x > 5: print("A") elif x > 8: print("B") else: print("C") 👉 Comment your answer 👇 📌 Tomorrow: Loops (for & while) 🔥 #Python #Coding #DataScience #Programming #LearnPython #Beginners #Tech #MustaqeemSiddiqui
To view or add a comment, sign in
-
-
🚀 My Python Learning Journey Today I explored how Python handles data using File Handling 📁 🔹 File Handling – Overview File handling allows us to store, read, and manage data in files instead of keeping everything in memory. This is useful when working with real-world applications where data needs to be saved permanently. 🔹 Types of Operations ✔️ Read (r) → Read data from file ✔️ Write (w) → Create/overwrite file ✔️ Append (a) → Add data to existing file 🔹 Example # Writing to a file with open("data.txt", "w") as f: f.write("Hello, Python!") # Reading from a file with open("data.txt", "r") as f: print(f.read()) 🔹 Key Concepts ✔️ File modes (r, w, a) ✔️ Opening and closing files ✔️ Using with for safe handling ✔️ Reading and writing data 🔹 Why File Handling is Important 💡 Used to store user data 💡 Helps in logging and saving results 💡 Important for real-world applications 🔹 Learning Outcome Understanding file handling made me realize how programs can interact with external data and store information permanently 🚀 #TeksAcademy #Python #CodingJourney #FileHandling #Programming #LearningJourney
To view or add a comment, sign in
-
-
🚀 Python Basics to Advanced Learning Series – Day 7 Today’s session was focused on one of the most important data structures in Python — Lists. This topic helped me understand how to store and manage multiple values efficiently. What I learned today: • What is a List and how it is used to store multiple values in a single variable • Lists are mutable, which means we can modify, add, or remove elements • How to create lists and access elements using indexing and slicing • Performing operations like adding, updating, and deleting elements • Understanding list traversal using loops • Learning important built-in functions used with lists: • Learning commonly used list methods: - "len()" → to find length of list - "append()" → add element at the end - "insert()" → add element at specific position - "remove()" → remove specific element - "pop()" → remove element using index - "clear()" → remove all elements - "sort()" → sort the list - "reverse()" → reverse the list - "count()" → count occurrences - "index()" → find position of element - "extend()" → add multiple elements • Practiced problems to understand how lists work in real scenarios This session helped me understand how powerful and flexible lists are in Python. Practicing different operations improved my confidence in handling data effectively. I’m learning all these concepts as part of my Python Basics to Advanced Learning Series at Global Quest Technologies Quest Technologies, and I’m improving step by step every day. Excited to learn more and build stronger concepts 🚀 G.R NARENDRA REDDY #Python #PythonProgramming #LearningJourney #Coding #Lists #DataStructures #ProblemSolving #SoftwareDevelopment #TechLearning #Developers #GlobalQuestTechnologies #GQT
To view or add a comment, sign in
-
-
🚀 Python Learning Series – 2: Variables, Data Types & Operators 🐍💻 After understanding the basics of Python in Series 1, the next important step is mastering Series 2, because this is the foundation of writing real programs. 📌 In Series 2, we learn: ✅ 🔹 Variables Variables are used to store values in memory. Example: name = "ABC" age = 25 ✅ 🔹 Rules of Variable Naming ✔ Must start with a letter or underscore ✔ Cannot start with a number ✔ No special symbols allowed ✅ 🔹 Python Data Types Python supports multiple data types such as: 📍 int (10, 20) 📍 float (12.5, 3.14) 📍 str ("Python") 📍 bool (True / False) 📍 list, tuple, set, dict ✅ 🔹 Type Checking & Type Casting We can check the type using: print(type(x)) And convert data types using: int(), float(), str() ✅ 🔹 Operators in Python Python provides different types of operators: ➕ Arithmetic (+, -, *, /, %) 🟰 Assignment (=, +=, -=) 🔍 Comparison (==, !=, >, <) 🧠 Logical (and, or, not) 📌 Membership (in, not in) 💡 Conclusion: Without understanding variables, data types, and operators, you cannot write proper Python programs. This chapter is the real base of coding! 📍 If you are a beginner, focus on practicing this chapter daily with small programs. #acsredutech #Python #PythonProgramming #LearnPython #Coding #ProgrammingForBeginners #DataTypes #Operators #ComputerEducation #SkillDevelopment #TechSkills #PythonCourse
To view or add a comment, sign in
-
-
🚀 Python Nested Loops – Master Repeated Actions Efficiently As part of my Python learning journey, I explored Nested Loops — a technique to perform repeated actions within loops. 🔗 Project Link: https://lnkd.in/dtMJEuhF --- 📊 What This Project Covers This script demonstrates how to use loops inside loops for complex iterations: ✔ "for" loop inside another "for" loop ✔ Nested "while" loops ✔ Combining loops with conditions ✔ Real-life examples like: - Printing patterns - Multiplication tables - Iterating over multi-dimensional data --- 💡 Why Nested Loops Matter - They allow handling multi-dimensional data - Essential for tables, matrices, and grids - Used in data analysis, algorithms, and simulations 👉 Nested loops make programs efficient and structured for repeated tasks --- 📈 Conclusion This project helped me understand how Python executes loops within loops. With a proper README: ✔ Anyone can understand the concept quickly ✔ Code becomes readable and professional ✔ Project becomes portfolio-ready Now anyone can learn: 👉 How to use nested loops 👉 How to solve repetitive problems 👉 How to structure complex iterations --- 🎯 What I Learned - Writing loops inside loops correctly - Using loops with conditions - Generating patterns and multi-dimensional outputs - Structuring code for readability --- 🔥 Next Step Continuing with: 👉 Modules & Functions 👉 Real-world Python projects 👉 Data Analysis applications --- If you are learning Python: 👉 Master nested loops — they are critical for repetitive tasks and patterns! 💬 Feedback is always welcome!
To view or add a comment, sign in
-
These are my actual Python notes. 🠀 Written by hand. Messy in places. Some mistakes crossed out. Some pages have arrows going in every direction. 4 months of sitting with this every day. No shortcut. No expensive bootcamp. Just a notebook, a pen, and YouTube. People ask me: why write by hand when you can just type? Because when I write it, I remember it. When I type it, I forget it. This is what self - learning actually looks like. Not perfect. Just consistent. 🠀 Topics c overed in these notes: → print() and input() → Variables and Data Types → Operators → Loops and Conditionals → Functions, OOPs, File Handling Are you also learning Python? Drop a 🠀 below.
To view or add a comment, sign in
-
Python Learning Journey – Dictionaries Deep Dive Dictionaries are one of the most powerful and flexible data structures in Python. Today, I explored some important functions that every developer should know 👇 📌 Core Dictionary Functions: ✔️ len() – Returns number of key-value pairs ✔️ clear() – Removes all elements ✔️ get() – Access values safely without errors ✔️ pop() – Removes specific key and returns its value ✔️ popitem() – Removes last inserted key-value pair ✔️ keys() – Returns all keys ✔️ items() – Returns key-value pairs ✔️ copy() – Creates a shallow copy ✔️ setdefault() – Returns value of key (adds if not present) ✔️ update() – Updates dictionary with new key-value pairs 💡 Advanced Concept: ✨ Dictionary Comprehension – A concise way to create dictionaries in a single line Example: {x: x*x for x in range(5)} 🎯 Mastering dictionaries helps in writing efficient and clean code, especially when working with real-world data. #Globalquesttechnologies #GR Narendra Reddy #Python #CodingJourney #100DaysOfCode #Programming #SoftwareDevelopment #PythonBasics #Learning
To view or add a comment, sign in
-
-
Python Learning Journey – Deep Dive into Core Concepts Continuing my Python journey, today I explored some powerful and practical concepts that strengthen problem-solving skills: 🔹 Loops in Python – for loop & while loop 🔹 Strings in Python ✔ Finding length using len() ✔ Accessing characters using index & slicing ✔ Exploring string methods & formatting 🔹 Hands-on Practice ✔ Program to accept a string & find its reverse 🔹 List Data Structure ✔ Built-in functions: len(), index(), append(), insert(), remove(), clear(), sort() ✔ Understanding id() function ✔ Aliasing vs Cloning of lists ✔ Cloning using slicing & copy() 🔹 Operators on Lists ✔ Multiplication & Concatenation ✔ Relational & Membership operators 🔹 Advanced Concepts ✔ Nested Lists ✔ List Comprehension ✔ Complete List Data Structure Summary 💡 Learning Python is all about consistency, practice, and building logic step by step. #Globalquesttechnologies #GR Narendra Reddy #Python #CodingJourney #LearningPython #Programming #Developers #100DaysOfCode #TechSkills #PythonBasics
To view or add a comment, sign in
-
-
🚀 Today I explored another important concept in Python — Lists 💻 🔹 What is a List? A list is a collection of items that are ordered and changeable. It allows us to store multiple values in a single variable. 🔹 How Lists Work: 1️⃣ Store multiple values in one place 2️⃣ Access elements using indexing 3️⃣ Modify elements easily 4️⃣ Add or remove items when needed 👉 Flow: Data → Store in List → Access/Modify → Output 🔹 Operations I explored: ✔️ Indexing Accessing elements using position ✔️ Slicing Getting a part of the list ✔️ List Methods Using built-in functions like append(), remove(), sort() 🔹 Example 1: Creating & Accessing List nums = [10, 20, 30, 40] print(nums[0]) # 10 print(nums[-1]) # 40 🔹 Example 2: Modifying List nums = [1, 2, 3] nums.append(4) nums.remove(2) print(nums) 🔹 Key Concepts I Learned: ✔️ Lists are mutable (can be changed) ✔️ Support indexing and slicing ✔️ Can store multiple data types ✔️ Useful for handling collections of data 🔹 Why Lists are Important: 💡 Used to store multiple values 💡 Helps in data processing 💡 Widely used in real-world applications 🔹 Real-life understanding: Lists are like a collection (for example, a list of marks or items), where we can add, remove, and update data easily Learning step by step and building strong fundamentals 🚀 #Python #CodingJourney #Lists #Programming
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development