Tackling Python string immutability! 🐍 I just finished the 'Mutations' challenge on HackerRank. This is a great exercise for understanding how Python handles data types in memory. How it works: In Python, strings are immutable, meaning you cannot change a character at a specific index directly. To solve this, I converted the string into a list, updated the character at the desired position, and then used .join() to merge it back into a single string. This concept of "convert-modify-rejoin" is a standard practice for efficient string manipulation in both Data Science and DevOps automation scripts. Check out the code in my Gravitycodes repo: 🔗 https://lnkd.in/gdb_-RSD #Python #Coding #Gravitycodes #HackerRank #ProblemSolving #SoftwareEngineering
M Heera Shanker’s Post
More Relevant Posts
-
One more Python challenge down! 🐍 I just solved the 'What's Your Name?' challenge on HackerRank. This problem is a great way to practice string formatting and function parameters in Python. How it works: The code uses a function to take two inputs—a first name and a last name—and merges them into a clean, formatted greeting using f-strings. It’s a simple but essential concept for keeping code readable, especially when building larger Data Science or DevOps projects. Check out the code in my Gravitycodes repo: 🔗 https://lnkd.in/g89-c9We Let’s connect and grow together! 🚀 #HackerRank #GitHub #Gravitycodes #OpenSource #ProblemSolving #Logic #Algorithm #CodingChallenge #PythonProgramming
To view or add a comment, sign in
-
-
Built a small Python project to practice APIs, data pipelines, and SQLite. It pulls data from a free API, stores it locally, and automatically tracks new entries. Fun to turn learning into hands-on projects! 🐍💻 #Python #DataEngineering #APIs #SQLite #PersonalProject #LearningByDoing
To view or add a comment, sign in
-
Livebook and Elixir Enable Distributed Python Dataframes for Machine Learning Workflows 📌 Livebook and Elixir now let you run distributed Python dataframes seamlessly across nodes-no more copying data or syncing environments. With Apache Arrow for zero-copy transfers and Pythonx for Elixir-Python interoperability, ML workflows get faster, lighter, and more flexible. Developers can scale Python code in Kubernetes or Fly.io with just a few lines of Elixir. 🔗 Read more: https://lnkd.in/dmqwzJR2 #Livebook #Elixir #Python #Machinelearning
To view or add a comment, sign in
-
Most data engines serialize data across process boundaries every time a Python User-Defined Function runs. Think Spark shipping rows to a separate Python process and back. Long ago, we eliminated that boundary entirely in Sail. Rust + PyO3 + Arrow, same process, zero copy.
To view or add a comment, sign in
-
Built a Python package this week. It's called sklog — colored terminal logging, no dependencies, no setup. Nothing fancy. Just something I kept rewriting across projects and finally packaged it. PyPI → https://lnkd.in/gYPsjCvn GitHub → https://lnkd.in/gx7B2APn #Python #OpenSource #foss
To view or add a comment, sign in
-
-
🐍📰 Python Gains frozendict and Other Python News for March 2026 Catch up on the latest Python news: frozendict joins the built-ins, Django patches SQL injections, and AI SDKs race to add WebSocket transport https://lnkd.in/gaKJ84gk
To view or add a comment, sign in
-
-
While learning Python, I started exploring how it fits into day-to-day DevOps tasks. Turns out, even small scripts can help with things like: • Log analysis • API calls and JSON parsing • Running system commands • Monitoring CPU, memory, and disk usage • Simple service health checks Automation doesn’t always require complex tools — sometimes a simple Python script can do the job. Sharing some useful Python examples for DevOps in the attached notes 👇 #DevOps #Python #Automation #CloudEngineering
To view or add a comment, sign in
-
🐍📺 Working With APIs in Python: Reading Public Data [Video] Learn how to consume REST APIs with Python using the requests library, including authentication, query parameters, and handling responses https://lnkd.in/gt2HM8J2
To view or add a comment, sign in
-
-
Day 4 – Python Automation Project Today I built a simple Web Scraper using Python to fetch the latest headlines from Hacker News. Used Requests and BeautifulSoup to extract the top news titles from the website. Learning more about how Python can automate data collection from websites. GitHub: https://lnkd.in/gVXYayBB #Python #WebScraping #Automation #Learning
To view or add a comment, sign in
-
-
🔹 Understanding Python Architecture 🐍 🔹 Ever wondered what happens behind the scenes when you run a Python program? Let’s break down Python architecture in a simple way 👇 🧩 1. Source Code (.py) This is the code we write as developers. ⚙️ 2. Compiler Python compiles the source code into bytecode (not machine code directly). 📦 3. Bytecode (.pyc) An intermediate, platform-independent code stored in the "__pycache__" folder. 🚀 4. Python Virtual Machine (PVM) The heart of Python! It reads bytecode and executes it line by line. 💾 5. Memory Management Python automatically handles memory using heap, stack, and garbage collection. 🔄 Execution Flow: Source Code → Bytecode → PVM → Output 💡 Key Takeaway: Python is both compiled and interpreted, making it portable and easy to use across platforms. #Python #Programming #SoftwareDevelopment #Coding #TechExplained #Learning
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