🚀 Day 5/100 — Working with Persistent Storage 🧠 “Persistence transforms execution into continuity.” Systems become meaningful when they retain and retrieve information reliably. Today, I learned how Python interacts with files to store and retrieve persistent data. ⚙️ 🔧 Today’s focus areas: 📂 File Reading — Accessing stored data 📝 File Writing — Persisting new information 🔄 File Modes — Managing read and write operations 🎯 Data Persistence — Ensuring continuity across executions 🎯 The objective was to enable programs to maintain state beyond runtime. ✅ Day 5 complete: Persistent data handling established. ▶️ Day 6: Strengthening reliability through exception handling. Step by step. The system evolves. 🏗️ #Python #BackendDevelopment #100DaysOfCode #SoftwareEngineering
Lokesh deesh V’s Post
More Relevant Posts
-
Would you seal 10,000 letters one by one? 👀 Imagine you have a file with millions of records and you need to apply a simple calculation. In pure Python, a "for" loop is like that employee who takes a letter, seals it, closes it, and moves on to the next one. Slow. Inefficient. Exhausting. This is where vectorization comes in with the “Dynamic Duo” of data. Pandas (The Structure): This is your organized office. It gives you the DataFrame (the table), handles column names, dates, and missing values. It is order.✏️ NumPy (The Engine): It's the industrial press. It doesn't ask what's on the letter; it knows everything is paper and applies the stamp to 1,000 envelopes in one fell swoop (SIMD instructions). 📦 The key to success lies in not choosing just one! you can Use Pandas to structure your information and NumPy (np.where, arithmetic operations) to execute the logic in bulk. This saves memory, execution time, and, most importantly, stops your CPU from working as if we were in 1995. #Python #Pandas #NumPy #Vectorization
To view or add a comment, sign in
-
-
Topic 3/100 🚀 🧠 Topic 3 — Context Managers Ever forgotten to close a file or database connection? 😅 That’s where this concept saves you. 👉 What is it? Context Managers allow you to manage resources automatically using the with statement. 👉 Use Case: Used in real-world applications for: File handling Database connections Managing locks in concurrent systems 👉 Why it’s Helpful: Prevents memory leaks Automatically cleans up resources Makes code cleaner and safer 💻 Example: with open("file.txt", "w") as f: f.write("Hello, World!") 🧠 What’s happening here? Python automatically opens the file and ensures it gets closed after the block executes — even if an error occurs. ⚡ Pro Tip: Always use context managers when working with external resources — it’s a best practice in production code. 💬 Follow this series for more Topics #Python #BackendDevelopment #100TopicOfCode #SoftwareEngineering #LearnInPublic
To view or add a comment, sign in
-
-
🔥 Day 4 – Pandas Selection & Production-Style Filtering Today I focused on strengthening my data selection and filtering skills using Pandas — but doing it the right way. Instead of just filtering rows, I practiced production-style defensive programming. Here’s what I worked on: ✅ Column & row selection using .loc and .iloc ✅ Boolean filtering with multiple conditions ✅ Cleaning messy CSV column names ✅ Safe numeric conversion using pd.to_numeric() ✅ Writing a custom function to parse "HH:MM" delay values into proper Timedelta objects ✅ Handling invalid values using pd.NaT ✅ Preventing runtime errors with defensive filtering logic Built a workflow that: • Filters orders with Miles ≤ 30 • Converts delay strings into real time objects • Filters delays ≤ 30 minutes • Ensures no invalid comparisons occur Real-world data is messy. Learning how to clean, validate, and safely filter it is what turns simple analysis into production-ready logic. 📂 GitHub Repository: https://lnkd.in/gNWeQ5KE On to Day 5 🚀 #Python #Pandas #DataEngineering #Analytics #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
Day 15 — File Handling: Working with Real Data So far, your programs lived in memory. Now they start interacting with the real world. File handling allows Python to read from and write to files — which means your programs can store data permanently. Today you learned: • How to open files using open() • The difference between read, write, and append modes • How to use with statements for safe file handling • Why closing files properly matters • How to read data line by line This is where Python becomes practical. File handling powers: • Logs and reports • Data storage • Configuration files • Real-world automation tools If your program can store and retrieve data, it becomes more than just a temporary script. Mini Challenge: Create a text file, write three lines into it, then read and print its contents using a with statement. Post your solution in the comments. I’m sharing Python fundamentals — one focused concept per day. Designed to move you from basic syntax to real-world capability. Next up: Object-Oriented Programming — thinking in objects and structure. Working with multiple files and testing outputs is much easier in PyCharm by JetBrains, especially with its built-in file explorer and debugging tools. Follow for the full Python series. Like • Save • Share with someone learning Python. #Python #LearnPython #PythonBeginners #FileHandling #Programming #CodingJourney #Developer #Tech #JetBrains #PyCharm
To view or add a comment, sign in
-
🚀 30 𝐃𝐚𝐲𝐬 𝐨𝐟 𝐏𝐲𝐭𝐡𝐨𝐧 — 𝐃𝐚𝐲 #03 | 𝐃𝐚𝐭𝐚 𝐓𝐲𝐩𝐞𝐬 & 𝐓𝐲𝐩𝐞 𝐂𝐚𝐬𝐭𝐢𝐧𝐠 Day 3 focused on one of the most fundamental concepts in programming: Data Types and Type Conversion in Python. Understanding data types is critical because every operation in Python depends on how data is stored and interpreted. 📌 𝘒𝘦𝘺 𝘊𝘰𝘯𝘤𝘦𝘱𝘵𝘴 𝘐 𝘊𝘰𝘷𝘦𝘳𝘦𝘥: 🔹 Core Data Types in Python int → Integer values float → Decimal values str → String/Text values bool → Boolean (True/False) 🔹 Type Checking Used the built-in type() function to inspect variable data types and better understand how Python handles memory and operations. 🔹 Type Conversion (Type Casting) Learned explicit type conversion using: int() float() str() bool() 𝐄𝐱𝐚𝐦𝐩𝐥𝐞 𝐢𝐧𝐬𝐢𝐠𝐡𝐭: Converting "20" (string) into 20 (integer) allows mathematical operations. Without proper type casting, programs can throw errors or behave unexpectedly. 💡 𝘛𝘦𝘤𝘩𝘯𝘪𝘤𝘢𝘭 𝘛𝘢𝘬𝘦𝘢𝘸𝘢𝘺: Data types directly impact arithmetic operations, memory handling, and program logic. Mastering type casting reduces bugs and improves code reliability. Strong fundamentals lead to scalable skills. 𝑫𝒂𝒚 3 𝒄𝒐𝒎𝒑𝒍𝒆𝒕𝒆 — 𝒄𝒐𝒏𝒔𝒊𝒔𝒕𝒆𝒏𝒄𝒚 𝒄𝒐𝒏𝒕𝒊𝒏𝒖𝒆𝒔. ✅ #PythonProgramming #PythonBasics #DataTypes #TypeCasting #TypeConversion #LearnToCode #CodingJourney #30DayChallenge #SoftwareDevelopment #WomenInTech #TechSkills #ProgrammingLife #ContinuousLearning
To view or add a comment, sign in
-
-
Python Journey — Day 11 | Number Patterns & Advanced Logic Today I practiced different number-based pattern problems using loops and nested logic. Problems I solved : • Hollow hourglass pattern • Reverse row number triangle • Inverted number triangle • Right-aligned number triangle • Increasing number triangle • Continuous number triangle • Even number triangle • Odd number triangle • Pyramid number pattern • Pascal’s triangle I used nested loops and number logic to build different pattern structures and understand how numbers flow within patterns Today's learnings: ✅ Designing number-based patterns using loops ✅ Understanding alignment and spacing logic ✅ Generating sequences like Pascal’s triangle ✅ Improving control over nested loops ✅ Strengthening logical thinking through pattern problems Today felt interesting as I explored different ways numbers can form patterns. Thanks to Rudra Sravan kumar sir for the guidance and continuous support.. Learning daily and getting more confident 📌 Consistency > Motivation On to Day 12 #PythonJourney #Day11 #PythonFullStack #10kcoders #LearningInPublic #Patterns #ProblemSolving #CodeEveryDay #FutureDeveloper #KeepLearning #PythonDeveloper
To view or add a comment, sign in
-
Polars is quietly becoming one of the most exciting tools in the modern Python data stack. Most of us have hit the limits of traditional DataFrame workflows: slow group‑bys, memory issues with medium‑large datasets, and complex pipelines that are hard to optimize. Polars tackles all of that head‑on with a fresh design. Docs: https://docs.pola.rs/
To view or add a comment, sign in
-
-
Topic 5/100 🚀 🧠 Topic 5 — Iterators Ever wondered how a for loop actually works behind the scenes? 🤔 This is the concept powering it. 👉 What is it? Iterators are objects that allow you to traverse through data step-by-step using __iter__() and __next__() methods. 👉 Use Case: Used in real-world applications for: Custom data pipelines Streaming data Building your own iterable objects 👉 Why it’s Helpful: Gives full control over iteration Enables custom looping logic Foundation for generators 💻 Example: class Counter: def __init__(self, max): self.max = max self.current = 0 def __iter__(self): return self def __next__(self): if self.current < self.max: self.current += 1 return self.current raise StopIteration for num in Counter(3): print(num) 🧠 What’s happening here? We created a custom object that behaves like a loop by controlling how values are returned one by one. ⚡ Pro Tip: If you understand iterators, you’ll unlock how Python handles loops internally. 💬 Follow this series for more Topics #Python #BackendDevelopment #100TopicOfCode #SoftwareEngineering #LearnInPublic
To view or add a comment, sign in
-
-
I’m currently building a 3-layer decision workflow: Layer 1: Intake – define the real business question Layer 2: Modeling – structured data + computation Layer 3: Reporting – clear action, not charts The rule I follow: Python computes. Humans decide. Systems connect the two. The goal isn’t prettier reports. It’s faster, higher-quality decisions.
To view or add a comment, sign in
-
𝗣𝘆𝘁𝗵𝗼𝗻 𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 🐍 | 𝗦𝗲𝘁𝘀 – 𝗦𝗲𝘁 𝗠𝘂𝘁𝗮𝘁𝗶𝗼𝗻𝘀 🔄 | 📅 𝗗𝗮𝘆 𝟱𝟮 🚀 Today’s task: ✅ 𝗦𝘁𝗮𝗿𝘁 𝘄𝗶𝘁𝗵 𝗮 𝘀𝗲𝘁 A. ✅ 𝗣𝗲𝗿𝗳𝗼𝗿𝗺 𝗺𝘂𝗹𝘁𝗶𝗽𝗹𝗲 𝘀𝗲𝘁 𝗼𝗽𝗲𝗿𝗮𝘁𝗶𝗼𝗻𝘀. ✅ 𝗨𝗽𝗱𝗮𝘁𝗲 𝘁𝗵𝗲 𝘀𝗲𝘁 𝗱𝗶𝗿𝗲𝗰𝘁𝗹𝘆. ✅ 𝗙𝗶𝗻𝗮𝗹𝗹𝘆 𝗽𝗿𝗶𝗻𝘁 𝘁𝗵𝗲 𝘀𝘂𝗺 𝗼𝗳 𝗲𝗹𝗲𝗺𝗲𝗻𝘁𝘀. Operations used: • update() • intersection_update() • difference_update() • symmetric_difference_update() Simple? Only if you understand set mutation vs set operation. Core idea from the code: Instead of creating new sets, these operations modify the original set directly. Example: A.update(B) → adds elements of B into A A.intersection_update(B) → keeps only common elements A.difference_update(B) → removes elements present in B A.symmetric_difference_update(B) → keeps elements not common in both 💡 𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗧𝗮𝗸𝗲𝗮𝘄𝗮𝘆: Mutation operations are important when: • You want memory-efficient updates • You want to modify the original dataset • You want faster in-place operations Because strong Python developers don’t just know operations. They understand when data is modified vs copied. Cleaner logic. Better performance. #Python #Sets #InterviewPrep #HackerRank #DataStructures #ProblemSolving #DailyCoding #Consistency
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