🚀 Day 2 — Python Journey Continuing with Python, today I focused on integer operations. 📌 What I learned: - Integer declaration - Addition, subtraction, multiplication - Division and modulus (remainder) - Power operation - Operator precedence (which operation runs first) 💡 What stood out: Understanding operator precedence is really important — the same expression can give different results if you don’t know the order of execution. Also, modulus (%) is more useful than it looks (especially for problems and logic building). Trying to stay consistent and build strong basics step by step. #Day2 #Python #CodingJourney #Consistency #LearnInPublic
Python Integer Operations and Precedence
More Relevant Posts
-
Day 1 of getting back into Python 🐍 Spent some time revisiting the basics and strengthening the fundamentals. Covered things like data types, strings, and basic operations, and built a few small projects along the way. It’s always interesting how the basics make everything else easier to understand. #Python #LearningJourney #DataAnalytics #ContinuousLearning
To view or add a comment, sign in
-
Here's a Python dictionary merge challenge from @dontmisstmr — can you get it right without running the code? dict1 = {"name": "Alice", "age": 25} dict2 = {"city": "Noida", "age": 26} merged = dict1 | dict2 print(merged) The | operator was introduced in Python 3.9. When both dicts share a key, which value wins? Drop your answer in the comments! #Python #SoftwareDevelopment #CodingChallenge #ProgrammingTips #TechCommunity
To view or add a comment, sign in
-
Day 4/30 – Python 🐍 Today I learned about lists in Python how to store multiple values and perform operations like append, remove, and slicing. Practiced a few problems and started understanding how powerful data structures can be. Getting better every day 📈 #Day4 #Python #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
Day 33/100 – #100DaysOfCode 🚀 Solved LeetCode #1480 – Running Sum of 1d Array (Python). Today I practiced prefix sum logic to compute the running sum of an array. Approach: 1) Initialize an empty list to store the running sum. 2) Maintain a variable sum = 0. 3) Traverse the array and keep adding each element to sum. 4) Append the updated sum to the result list. 5) Return the final running sum array. Time Complexity: O(n) Space Complexity: O(n) Understanding prefix sums helps solve many array problems efficiently 💪 #LeetCode #Python #DSA #Arrays #PrefixSum #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
ℙ𝕪𝕥𝕙𝕠𝕟 𝕊𝕥𝕣𝕚𝕟𝕘 𝕊𝕝𝕚𝕔𝕚𝕟𝕘 𝔻𝕣𝕪 ℝ𝕦𝕟 🐍 When working with Python, understanding how strings are manipulated is key. Many beginners get confused by how slicing ranges work—specifically the "start" and "stop" parameters. Can you perform a dry run of this code? #PythonProgramming #CodingChallenge #PythonDevelopers #LearnToCode #DataScience #SoftwareEngineering #PythonTips #CodingQuiz #TechCommunity #DryRun #ProgrammingLife #LinkedInLearning
To view or add a comment, sign in
-
-
Loops in Python look simple. 🐍 💻 But they save you hours. Instead of repeating tasks, you let the code do it for you. I made a short (10-page) tutorial focused on loops - simple and practical. Comment “loops” if you want it 👇 #Python #Programming #CodingBasics #LearnPython #Automation #AI #TechSkills #FreelancerLife
To view or add a comment, sign in
-
Learn machine learning with Python and discover how to build and deploy AI-powered solutions with ease, with our comprehensive guide and tutorial https://lnkd.in/gTKhVnz5 #MachineLearningWithPython Read the full article https://lnkd.in/gTKhVnz5
To view or add a comment, sign in
-
-
🚀 Day 4/100 – Python Today I worked on solving a Quadratic Equation using Python. Instead of just writing code, I focused on understanding the logic behind it. Equation: ax² + bx + c = 0 Key learning from today: ✔ How to convert mathematical formulas into code ✔ Understanding the role of the discriminant (b² - 4ac) ✔ How different values of the discriminant affect the result ✔ Handling edge cases like negative values (using cmath) #100DaysOfCode #Python #ProblemSolving #LearningInPublic
To view or add a comment, sign in
-
-
Spent today mastering Python's 4 core data structures — List, Tuple, Set & Dict. Made this cheatsheet to lock it in 🔒 Includes comparison table, key methods, memory hooks & common pitfalls. Drop a 🐍 if you find it useful! #Python #Programming #DataStructures #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
Day 11/30 – Python 🐍 Today I learned about inheritance and how classes can reuse and extend functionality. Tried a few examples and understood how it helps in writing cleaner and scalable code. Concepts getting deeper 🔍 #Day11 #Python #CodingJourney #LearningInPublic
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