Day 3: Mastering Operators! 🚀 Today, I learned how to make my code "think" using Operators. These are the tools that let us do math and create logic in programming. What I practiced today: ✅ Math Operators: Using +, -, *, /, and % for calculations. ✅ Comparison: Using ==, >, and < to compare values. ✅ Logical Thinking: Using and, or, and not to build smart conditions. I have practiced these concepts with real examples and pushed all my code to Github💻 Small steps every day lead to big results. #Coding #Python #Learning #Codegnan
Mastering Programming Operators with Python
More Relevant Posts
-
🐍 Day 8 of Learning Python — and things are getting real! Today's lab was all about writing code that doesn't break (or at least fails gracefully 😄). Here's what I worked through: ✅ Exception Handling — try / except / else / finally • Caught ZeroDivisionError, FileNotFoundError, ValueError, and TypeError • Used `raise` to throw custom error messages • Built my own exception class: TooSmallError 🎉 ✅ Standard library deep dive: • math — calculated circle areas, factorials, GCD, and compound interest • random — shuffled lists, simulated 1000 coin flips, generated reproducible sequences with seed() • datetime — parsed date strings, added time deltas, sorted ISO dates, and printed 5-day schedules ✅ Introspection with dir() and help() The biggest lesson today? Real-life programs don't always get perfect input. Learning to handle errors gracefully is just as important as writing the happy path. Day by day, the pieces are coming together. 💪 #Python #100DaysOfCode #LearningToCode #PythonProgramming #CodingJourney #Day8
To view or add a comment, sign in
-
📌 Problem: Sum of Digits in Base K 💡 Approach: Convert the given number into base k by repeatedly dividing it by k. At each step, take the remainder (n % k) which represents the digit in base k, and add it to the sum. Continue until the number becomes zero. ⚙️ Key Insight: Base conversion using division and remainder No need to explicitly store the converted number ⏱️ Time Complexity: O(logₖ n) 📦 Space Complexity: O(1) 📚 What I learned: Efficient base conversion technique Working with number systems in coding problems #LeetCode #DSA #Algorithms #Coding #ProblemSolving #Python #Math #InterviewPreparation #CodingJourney
To view or add a comment, sign in
-
🚀 Day 7 – LeetCode Journey Today’s problem: String to Integer (atoi) This one really tested my understanding of edge cases and string parsing. Not just coding, but thinking like a machine step-by-step 👇 ✅ Ignored leading whitespaces ✅ Handled positive & negative signs ✅ Extracted numbers until non-digit appears ✅ Managed overflow within 32-bit integer range At first, it looked simple… but the edge cases made it interesting 😅 💡 Key Learning: Writing code is one thing, but handling all possible inputs correctly is what truly matters in real-world problems. Slowly getting better at breaking down problems and building clean logic 💻🔥 On to Day 8… 🚀 #Day7 #LeetCode #CodingJourney #Python #ProblemSolving #Consistency #LearningEveryday
To view or add a comment, sign in
-
-
Over the past few weeks, I’ve been diving deep into Python and strengthening my programming fundamentals 🚀 Here’s a quick snapshot of what I’ve been working on: Python basics and core syntax Data structures (lists, tuples, sets, dictionaries) Loops and loop control statements Built-in functions for cleaner and efficient code List and dictionary comprehensions for writing more concise and readable logic It’s been a great learning experience moving from understanding concepts to actually applying them in practice. Comprehensions, in particular, have completely changed how I approach writing cleaner code! Still a long way to go, but I’m enjoying the process of building consistency and problem-solving skills every day. Looking forward to exploring more advanced topics and working on real-world projects soon! #Python #LearningJourney #Programming #DataAnalytics #Coding #BeginnerToPro
To view or add a comment, sign in
-
How do you explain a “function” to a newbie?🤔 For me, the simplest way is this: a function is a reusable tool for a specific task. ✨ Think about it like this: when you want to sweep your floor, you don’t reinvent the broom every time, right? You grab the broom, sweep, and done. ✅ In programming, a function works the same way. Once you’ve written it, you can reuse it anywhere you need that task done. No need to repeat the steps from scratch. So the next time someone asks you what a function is, don’t get lost in technical jargon. Just say: “It’s your broom in the coding world. Once you have it, you just keep using it.” 😉 What everyday object would you compare a function to? #Programming #Python #BackendDevelopment #SoftwareEngineering #LearnigInPublic
To view or add a comment, sign in
-
Today I focused first on Python fundamentals that are essential for practical coding: • Functions help organize logic into reusable blocks, making programs cleaner and easier to manage. • Modules allow code reuse and structure, whether importing built-in ones like math or creating custom ones. • File Handling connects programs to external data, enabling reading, writing, and updating files. These basics form the foundation for building larger, real-world applications. Later, I continued with DSA problem-solving and worked through: 1. Intersection of Two Arrays II – practicing frequency maps to handle duplicates. 2. Jump Game II – applying greedy strategies to minimize jumps. 3. Triangle – solving a DP problem to find the minimum path sum from top to bottom. 4. Unique Binary Search Trees – learning how Catalan numbers and DP combine to count BSTs. #Python #DSA #Leetcode #DynamicProgramming #Functions #Modules #FileHandling #CodingJourney #LearningEveryday
To view or add a comment, sign in
-
-
🔍 Learning the Basics Strongly! Understanding Operator Precedence is one of the most important steps in programming. It helps in writing correct and efficient code by knowing which operation runs first. 📌 Key takeaway: () → Highest priority ** → Power *, /, % → Arithmetic +, - → Addition/Subtraction Comparison → ==, !=, >, < Logical → not → and → or 💡 Small concepts like these build a strong foundation for coding and problem-solving. #Programming #Python #CodingBasics #Learning #TechJourney #BCA #AI #StudentLife
To view or add a comment, sign in
-
-
🚀 Day 81 – Mastering Date & Time in Python ⏰📅 Today’s learning journey was all about the datetime module — one of Python’s most practical tools for handling real‑world scenarios involving dates and times. 🔹 Current Date & Time – Practiced fetching the present moment with datetime.now(), a powerful way to anchor programs in real‑time. 🔹 Modification – Explored how to adjust dates and times, making it possible to calculate future or past events with ease. 🔹 Formatting with strftime – Learned how to present date and time in human‑friendly formats, turning raw data into readable output. 🔹 Parsing with strptime – Understood how to convert strings into datetime objects, bridging user input with program logic. 🔹 timedelta Magic – Discovered how to perform arithmetic on dates and times, enabling countdowns, schedules, and reminders. 🔹 Alarm Task – Applied these concepts to build a simple alarm, reinforcing how datetime can power real‑life applications. 🌱 Reflection – Working with time isn’t just technical; it’s about making programs responsive to the world around us. From reminders to logs, datetime is the backbone of time‑aware applications. ✨ Grateful to Ajay Miryala sir and the 10000 Coders team for guiding me through another essential building block in Python. ⚡ Day 81 was about turning abstract concepts into practical tools — learning to control time itself in code! #Day81 #PythonLearning #Datetime #CodingJourney #10000Coders #LearnInPublic #100DaysOfCode
To view or add a comment, sign in
-
🚀 Day 55 of my Problem Solving Journey Solved Remove Spaces today — a simple yet important string manipulation problem. 💡 Key Learning: Sometimes the easiest problems reinforce the strongest fundamentals. Efficient string handling and clean code matter just as much as complex algorithms. Explored multiple approaches — from built-in methods like "replace()" to manual iteration — and understood how each impacts readability and performance. Small steps like these build consistency and sharpen problem-solving skills over time. 💻 #geekstreak60 #npci #GeeksforGeeks #DSA #Python #ProblemSolving #CodingJourney
To view or add a comment, sign in
-
-
🧩 DSA Breakdown: Insert Interval One of those problems that looks scary at first, but once you see the pattern — it clicks instantly. The problem: Given a sorted list of non-overlapping intervals, insert a new interval and merge if needed. The trick? Just think in 3 phases: 1️⃣ Add all intervals that END before the new one starts → no overlap, safe to add 2️⃣ MERGE all intervals that overlap → keep expanding the new interval's boundaries 3️⃣ Add everything remaining → they start after the new interval ends ✅ Time: O(n) — single pass ✅ Space: O(n) Currently grinding DSA one problem at a time 💪 If you're on the same journey, let's connect! #DSA #CodingInterview #Python #LeetCode #Programming #100DaysOfCode
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