✅ **Day 25 of 100 — U.S. States Quiz + CSV with Pandas 🗺️📊 Today’s project was an interactive U.S. States quiz using Python’s pandas library. I learned how to: - Read state data from a .csv file using pandas - Display states on a map as the user guesses correctly - Track and update the score in real time When I got stuck on validating user guesses, I found a 3-year-old Stack Overflow question by “joeca” asking for help with similar logic. Studying their approach helped me structure my own solution—with adjustments for scoring, input handling, and real-time feedback. Found a small bug to fix: if a state is guessed twice, it currently adds to the score again. I’ll refine that later, but overall, it was a rewarding dive into data handling + interactive learning tools. Another day of learning, adapting, and problem-solving! 👨💻 #python #100DaysOfCode #StackOverflow
More Relevant Posts
-
📅 Day 5 of My Python Learning Journey 🐍 Topic: Packing & Unpacking in Python Today I learned a super cool and useful concept in Python called Packing and Unpacking 💡 🔹 Packing When we put multiple values into a single variable (usually a tuple), it’s called packing. Example: data = 10, 20, 30 ➡️ Python packs these values into a tuple: (10, 20, 30) 🔹 Unpacking When we take values out of a tuple/list and assign them to multiple variables, it’s called unpacking. Example: a, b, c = data ➡️ Now a = 10, b = 20, c = 30 ✨ Why it’s useful? • Makes code clean & readable • Easy swapping of values • Great for working with functions and lists Python keeps surprising me every day 😄 On to Day 6 tomorrow! 💪 #Python #LearningPython #100DaysOfCode #PythonBasics #CodingJourney #BeginnerToPro
To view or add a comment, sign in
-
-
Headline: Stop writing loops to clean your data. 🛑 One of the most common tasks in Python is handling duplicate entries. While you could write a for-loop with a conditional check, there’s a much faster, more "Pythonic" way to do it: Sets. Sets are unordered collections of unique elements. By casting your list to a set, Python handles the heavy lifting of deduplication instantly. Why use this? ✅ Cleaner, more readable code. ✅ Better performance for large datasets. ✅ Built-in membership testing (O(1) complexity). How are you using Sets in your current workflow? Let’s discuss below! 👇 #PythonProgramming #Pyspiders #CodingTips #SoftwareDevelopment
To view or add a comment, sign in
-
-
🚀 Day 2/30 – Understanding Variables & Data Types in Python Today was all about building the foundation. After learning basic syntax on Day 1, I moved to something very important — Variables and Data Types. At first, it sounded simple. But when I started practicing, I realized how powerful these basics really are. 📌 What I learned today: • What a variable is (a container that stores data) • How to declare variables in Python • Different data types: – int (numbers) – float (decimal numbers) – str (text) – bool (True/False) • How Python automatically detects data types • Using type() to check the data type The biggest realization today: Programming is not about memorizing syntax — it’s about understanding how data flows and how logic works. Small concepts, but they build big systems. Day 2 complete ✅ Learning one concept at a time, consistently. #Python #30DaysChallenge #LearningInPublic #ProgrammingBasics #TechJourney Aditya Chaturvedi
To view or add a comment, sign in
-
-
At first, I skipped Iterator, Generator, and Decorator while revising Python. I thought they were confusing and not that important. But during revision, when I properly understood them, everything became clear — what they are, why they exist, and where Python actually uses them. ✨ Quick learning summary : 🔹 Iterator Used to go through data one value at a time. Example: reading large files, database records. 🔹 Generator An easier and smarter way to create iterators using yield. Used when working with large data, streams, or infinite sequences. 🔹 Decorator Used to add extra behavior to a function without changing its code. Commonly used for logging, authentication, caching . 👉 After understanding these concepts, Python feels more powerful and logical, not complex. 📌 Lesson learned: Never skip a topic just because it looks difficult. Once you understand the why, the how becomes easy. #Python #LearningJourney #CorePython #Iterator #Generator #Decorator #ProgrammingBasics #Revision #InnomaticsResearchLabs #AdvancedPython #Syntax #Example
To view or add a comment, sign in
-
-
🐍 Day 12 of my Python Full-Stack Journey — Mastering Lists! Today I went deep into one of Python's most powerful built-in data structures: Lists. Here's what I covered: ✅ Creating and indexing lists ✅ Slicing (list[1:4], negative indexing) ✅ List methods — append(), extend(), insert(), remove(), pop(), sort(), reverse() ✅ List comprehensions (honestly a game-changer 🤯) ✅ Nested lists and iterating with loops The "aha moment" today? List comprehensions. Instead of writing 4 lines to filter a list, you can do it in ONE: squares = [x**2 for x in range(10) if x % 2 == 0] Clean. Pythonic. Beautiful. 🧠 Lists feel simple at first — but understanding how they work under the hood (mutability, references, shallow vs. deep copy) is where real Python thinking begins. 12 days in. The foundation is getting solid. Drop a 💬 if you're also learning Python — would love to connect and grow together! #Python #100DaysOfCode #FullStackDeveloper #LearningInPublic #PythonJourney #CodeNewbie #SoftwareDevelopment
To view or add a comment, sign in
-
-
Day 4 of my Python Learning Journey 🚀 Today was all about exploring Python data types using practical examples and understanding how Python handles data internally. What I learned today 👇 🔹 Numeric & Boolean data types int, float, complex bool (True, False) Used print() and type() to clearly identify each type 🔹 Collections & sequences list, tuple, string, range dictionary (key–value pairs) set and frozenset Checked their types using type() 💻 Example: Copy code Python x = 10 y = [1, 2, 3] print(type(x)) print(type(y)) I also understood indexing, basic memory allocation, and the difference between 👉 mutable (list, set, dictionary) and immutable (int, tuple, string) data types. Learning step by step and strengthening my fundamentals 📚 🚀 Next up: diving deeper into Python concepts! #PythonLearning #Day4 #PythonBasics #AIMLStudent #CodingJourney #LearnPython #Consistency
To view or add a comment, sign in
-
-
🐍 Day 2/60 – Variables & Data Types Today I learned how Python stores information. Everything starts with variables. Small steps. Big systems loading. This is the moment you stop “reading about Python” and actually using it. A variable is just a name that stores a value. Main Data Types You Must Know str → Text int → Whole numbers float → Decimal numbers bool → True / False Mini Challenge Create 5 variables about yourself: Your name Your age Your dream job Your current skill Are you consistent? (True/False) What You Should Understand Deeply Today Python is dynamically typed (no need to declare type) Variable names must not start with numbers Use meaningful names (not x, y, z like it’s math class) #CodeEveryday#LevelUp#TechEra#DigitalGrowth#StayHungry
To view or add a comment, sign in
-
🚀 Learning Python: Nested if–else in Action 🐍 Today, I worked on a Python project where I implemented nested if–else statements to build an AI Restaurant Recommendation System. Nested if–else helps when: ✔️ You need to make multiple decisions ✔️ One condition depends on another ✔️ You want to handle real-world logic step by step In my project, nested conditions were used to decide: Number of persons Food preferences Meal type (Chicken / Mutton / Beef) Billing and tax calculation This practice really improved my understanding of decision-making logic in Python. Learning by building projects is the best way to grow 💡 #Python #PythonProgramming #NestedIfElse #ProgrammingBasics
To view or add a comment, sign in
-
-
#Learning hashtag #Python through Chunks. Lets start journey together (Beginner to Master). Lets code together !! #ABCC - Any Body Can CODE Chunk 4: Variables A variable is a box with a label where you store something. You choose the label. You put a value inside the box. You can take it out and use it whenever you want. Code age = 12 print(age) This means: Make a box/container called "age" Put "12" inside it Output 12 Code 2 name = "Lakshmisha" print("Hello " + name) Output Hello Lakshmisha The box idea makes everything easier: name → box "Lakshmisha" → value inside the box Python reads the variable name exactly as you wrote it. Python is case‑sensitive. age, Age, and AGE are all different. 💡 Key points to remember A variable is a labeled box. The label is the variable name. The content is the value. You can reuse the value anytime.
To view or add a comment, sign in
-
The coolest move in Python syntax: The "Moonwalk" loop. 🕺 Beginners often overcomplicate counting backwards in Python. I’ve seen clunky while loops, manually decrementing counters, or creating lists just to reverse them [::-1]. Stop working so hard. The "Pro" move is to unlock the often-ignored third parameter of the built-in range() function: the step. The syntax is: range(start, stop, step) By default, the step is positive (+1), moving you forward. But if you set the step to -1, you tell Python to slide backwards. In the visual below: Start at 10. Stop before 0 (Remember, the stop index is exclusive!). Step back by -1 each time. It’s clean, readable, and honestly, it just looks way cooler than a messy while loop. 😎 Want to learn a new Python trick every morning? We turn boring documentation into fun, bite-sized lessons. Get them delivered straight to your inbox daily. 👉 Join the PyDaily community here: https://lnkd.in/ducXvs-y #Python #CodingTips #LearnPython #SoftwareEngineering #Developer #PyDaily
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