Day 2 of my #100DaysOfCodewithAngelaYu journey with Python 💻 As a beginner, I spent the day exploring the fundamentals of programming and building my first small project — a Tip Calculator. Some of the key concepts I learned include: - Data types – understanding integers, floats, and strings. - Type errors, type checking, and type conversion – making sure inputs are valid and compatible for calculations. - Mathematical operations in Python – performing calculations and handling percentages. - Number manipulation and f-strings – formatting results neatly for the user. 𝐌𝐢𝐧𝐢 𝐏𝐫𝐨𝐣𝐞𝐜𝐭: Tip Calculator 💰 For my Day 2 project, I created a Tip Calculator in Python. This small program allows a user to: - Enter the total bill amount - Specify a tip percentage - Indicate how many people will split the bill The program then: - Calculates the tip based on the percentage - Adds it to the total bill - Divides the total by the number of people - Outputs the final amount per person, rounded to 2 decimal places using f-strings This project helped me see how these building blocks come together to create a working, interactive program. I’m excited to continue my journey and explore more Python projects, including interactive apps with Streamlit, in the coming days! 🚀 #Python #100DaysOfCode #LearningByDoing #CodingJourney #Streamlit
More Relevant Posts
-
🚀 Learning Python the Practical Way: Understanding Virtual Environments Over the past few days, I started learning Python and decided to focus on building instead of just reading syntax. Today, I explored one of the most important concepts for any developer: Virtual Environments (venv) Here’s what I understood: 🔹 A virtual environment is an isolated Python setup for a specific project 🔹 It prevents version conflicts between different projects 🔹 Each project can have its own dependencies without affecting others 💡 Why it matters: While working on multiple projects, different versions of the same library can break things. Virtual environments solve this by keeping everything separate and controlled. 🛠️ What I practiced: Creating a virtual environment Activating and deactivating it Installing packages inside it Understanding how Python uses project-specific paths This concept is very similar to how we manage dependencies in Node.js projects, but implemented differently in Python. Next step: Building a simple backend server using FastAPI to apply this knowledge in real projects. #Python #BackendDevelopment #FastAPI #WebDevelopment #LearningInPublic
To view or add a comment, sign in
-
-
11 Useful Python List Methods Working with lists is common in almost every Python project. Understanding these built-in methods makes your code cleaner and more efficient. Here are 11 essential list methods: 1) append() → Add a single item to the list. 2) extend() → Add multiple items individually. 3) insert() → Add an item at a specific index. 4) remove() → Remove the first matching item. 5) pop() → Remove and return an item. 6) index() → Find the position of an item. 7) count() → Count how many times an item appears. 8) sort() → Sort the list in place. 9) reverse() → Reverse the order of elements. 10) clear() → Remove all items from the list. 11) reverse() → Reverse the order of elements. These small methods are simple, but they appear frequently in real-world code. Mastering them improves readability and reduces unnecessary logic. Comment below, Which list method do you use the most? Comment below. Save this for quick revision later. 📌 I share simple Python and backend learnings here. #Python #LearnPython #Programming #Coding #SoftwareEngineering #PythonDeveloper
To view or add a comment, sign in
-
-
🚀 Day 7 of My Python Learning Journey Today was all about Conditional Statements in Python — a fundamental concept that brings decision-making into programs. Here’s what I explored today 👇 🔹 if statement → Used to check conditions and execute code only when the condition is true 🔹 if-else statement → Introduced fallback logic when a condition is false 🔹 if-elif-else ladder → Helped me handle multiple conditions efficiently 💻 Hands-on Practice I Did: ✔️ Age eligibility checker ✔️ Attendance-based exam eligibility ✔️ Budget vs price comparison ✔️ Shopping cart free delivery logic ✔️ Grade classification system ✔️ Simple Calculator (2 versions 🔥) ✔️ Even/Odd number checker ✔️ Positive/Negative/Zero identifier All tasks are implemented with user inputs and real-world logic to strengthen understanding. You can check out my code here 👉 https://lnkd.in/gWYTz6nf 💡 Key Learning: Conditional statements are the backbone of logic building. They are used everywhere — from login systems to real-world applications like pricing, validation, and automation. 🎯 Next Goal: Keep building more real-world mini projects using Python and strengthen my problem-solving skills as I move toward full stack development. #Day7 #Python #CodingJourney #100DaysOfCode #LearningInPublic #FullStackDevelopment Codegnan Saketh Kallepu
To view or add a comment, sign in
-
🚀 Day 21/50 – File Manager App using Python 📂⚙️ As part of my 50 Days of Python Projects Challenge, today I built a simple File Manager App using Python. This tool automatically organizes files in a folder based on their file extensions. It helps keep directories clean and structured by grouping similar file types into separate folders. 🛠 How It Works The program scans all files in a given directory and: • Identifies file extensions • Creates folders based on file types (e.g., .jpg, .pdf, .txt) • Moves files into their respective folders It also handles files without extensions by placing them in a separate folder. ⚙ Technologies Used Python os module shutil module 📚 Key Learnings ✔ File and directory handling in Python ✔ Automating file organization ✔ Working with file paths and extensions ✔ Building real-world automation tools 📂 Project Available on GitHub You can explore the full project here: 👉 https://lnkd.in/g4kVDpG4 #Python #PythonProjects #50DaysOfCode #LearningInPublic #Automation #FileManagement #PythonDeveloper #BuildInPublic #CodingJourney #TechLearning
To view or add a comment, sign in
-
-
Today, I learned some fundamental concepts in Python related to variables and assignments. 🐍 🔹 Multiple Variable Assignment We can assign multiple values to multiple variables in a single line: x, y, z = "John", "Vijay", "Dhoni" print(x, y, z) ✅ Output: John Vijay Dhoni 👉 The number of variables and values must match, otherwise Python will raise an error. ⚠️ 🔹 Assigning the Same Value to Multiple Variables We can assign the same value to multiple variables like this: a = b = c = "Python" print(a, b, c) ✅ Output: Python Python Python 🔹 Checking Data Type We can check the data type of a variable using the type() function: x = 5 print(type(x)) ✅ Output: <class 'int'> 🔹 Unpacking a List We can assign values from a list to variables: subjects = ["HTML", "CSS", "JS"] x, y, z = subjects print(x) ✅ Output: HTML 🚀 Step by step, I’m building my Python fundamentals and improving every day! #Python #Programming #Coding #Beginners 💻🔥
To view or add a comment, sign in
-
🎮 Hangman – Python Another step forward in my Python learning journey. This time I built the classic Hangman game in Python where the user guesses letters to reveal a hidden word while managing limited lives. While building this project, I focused on improving program logic and user experience by handling repeated guesses correctly and validating user input to ensure only single alphabet characters are accepted. Concepts practiced in this project: • Variables and data types • Lists (tracking correct and incorrect guesses) • for loops and while loops • if / elif / else conditionals • Nested logic • String handling • Input handling and validation • Random module usage • Program flow control • Basic modular programming (multiple Python files) 💻 Try the app: 🔗 Live Demo (Replit): Link in comments 💻 GitHub Repository: Link in comments Always learning, one small program at a time. 🚀 #Python #CodingJourney #LearningToCode #BeginnerProgrammer #100DaysOfCode
To view or add a comment, sign in
-
Day 49 : Python Functions & Arguments Today I understood the functions and arguments and its usage. Hands-on : - Today I learned about functions in Python, which help organize code into reusable blocks. I started with the basic syntax of a function, understanding how to define and call functions for specific tasks. - I then explored arguments in functions, which allow passing data into functions. - I practiced using multiple arguments to handle more than one input. - ------ Moving forward, I learned about arbitrary arguments (*args), which let functions accept a variable number of positional inputs. - I also worked with keyword arguments, where values are passed using parameter names for better clarity. - Finally, I explored **arbitrary keyword arguments (kwargs), which allow passing a variable number of named arguments into a function. - These concepts are essential for writing flexible and reusable code in real-world applications. Result : - Successfully understood how to create functions and use different types of arguments to make code more modular and dynamic. Key Takeaways : - Functions help in code reusability and modular programming. - Arguments allow passing data into functions. - Multiple arguments enable handling several inputs. - *args allows variable positional arguments. - Keyword arguments improve readability. - **kwargs allows variable named arguments. #Python #Programming #DataAnalytics #LearningJourney #Functions #CodingBasics #DataScience #BeginnerPython #AnalyticsSkills
To view or add a comment, sign in
-
-
Day 3 of my #100DaysOfCodewithAngelaYu journey with Python 💻 Another day, another challenge! 💪 Today, I focused on control flows and logical operators in Python. Learning how to guide my code using "if, elif, else" and combining conditions with "and, or, not" was so rewarding. Mini Project: Treasure Island Project 🏝️ The Treasure Island Project is a simple text-based adventure game in Python. The player navigates through a story by making choices at key points, and each choice determines the outcome of the game. How it works: - The game starts with a scenario, like being on a mysterious island. - The player is presented with multiple options at each stage (e.g., “left or right?”, “swim or wait?”). - Using control flow statements (if, elif, else) and logical operators (and, or, not), the program checks the player’s input and decides the next step. - Depending on the choices, the player either finds the treasure (wins) or encounters obstacles (loses). Why it’s valuable: - It’s a fun way to practice decision-making in code. - Helps reinforce conditional logic and nested conditions. - Shows how small programs can create interactive experiences. - In short, it’s a beginner-friendly project that turns Python logic into a mini-adventure game! 💡 Key takeaway: These concepts are the backbone of problem-solving in Python and mastering them makes coding more intuitive and fun. #Python #CodingJourney #100DaysOfCode #Programming
To view or add a comment, sign in
-
🚀 Python 7-Day Series – Final Drop! Instead of just sharing another tip, I decided to do something bigger 💡 I’ve compiled a complete Python Notes PDF that covers key concepts along with 3 mini projects to help you apply what you learn practically. 📘 What’s inside? ✔️ Easy-to-understand Python concepts ✔️ Practical examples ✔️ 3 hands-on mini projects to build your skills Whether you're a beginner or revising your basics, this will definitely add value to your learning journey. 📎 Please find the PDF attached below! Let me know your feedback or if you'd like more such content 🙌 #Python #LearningPython #PythonProjects #CodingJourney #DataAnalytics #Programming #BeginnerFriendly #CareerGrowth PythonPython Software Foundation Python Valley Python Assignment Helper
To view or add a comment, sign in
-
Day 26 of #100DaysOfCode👩💻🚀 Today I learned about Getter, Setter, and 3 types of methods in Python OOP. Getter & Setter methods: Getters are used to access private data safely → `get_name()` Setters are used to update private data with validation → `set_age()` They help protect data and add control over how variables are read or changed. 3 Types of Methods in Python: 1. Instance method → Uses `self`, works with object data. Called by objects. 2. Class method → Uses `@classmethod` and `cls`, works with class variables. Called by class. 3. Static method → Uses `@staticmethod`, doesn’t use `self` or `cls`. Like a normal function inside class. One more step toward writing clean, secure OOP code. Special thanks to the CEO G.R NARENDRA REDDY Sir for constant guidance and motivation. #Python #OOP #GetterSetter #100DaysOfCode #LearningJourney #Programming
To view or add a comment, sign in
-
Explore related topics
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
Go girl ✨️