Hello everybody, and welcome to this second personal project of 'Learning Python with me'. Today, I have been asked to create a commission calculator for a friend, and we will use Python to make a simple calculator that shows the percentage commission. What do we need? - Name - Income - Commission result Throughout this project, I realized that I needed to convert strings into integers, since the final result had to be a number. I also learned how to use variables in mathematical operations and print them as a final result. Here is how it looks. I hope you enjoy it! :) #Python #PythonProject #SideProject #fyp #Programming #OpsDeveloper
More Relevant Posts
-
📘 Python Learning – Day 3 Highlights 🐍 Today’s class was all about Strings & Conditional Logic — very practical and fun! 🔹 String Methods: Used functions like lower(), upper(), strip(), replace(), find(), count(), and split() 🔹 String Formatting: Learned modern and clean way using f-strings 🔹 Conditional Statements: if, elif, else to make decisions in programs 🔹 Ternary Operator: Short and smart way to write conditions in one line 🔹 Practice Programs: ✔ Grade calculation system ✔ Palindrome checker ✔ Vowel counter 💡 Example: text == text[::-1] → checks palindrome Learning how to think logically with code step by step 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
To view or add a comment, sign in
-
-
Can we actually enjoy studying? With the right approach, absolutely! 💡 I’ve been using a mix of my own notes and Generative AI to create visual summaries of Python basics. I found that using these visual "maps" makes it so much easier to remember terms properly for a long period of time. Whether you are a beginner or just need a quick revision guide, this 1-page summary is a game-changer for staying sharp. Check out my Python Basic "Cheat Sheet" below! 👇 #Python #GenAI #Programming #RevisionTips #CareerGrowth #DataScience #DataAnalytics
To view or add a comment, sign in
-
-
🚀 Day 2 of #100DaysOfCode Today I learned how to check whether a number is a Palindrome using Python 🐍 🔍 Problem: A number is called a palindrome if it reads the same forward and backward (like 121, 1331). 💡 Approach: Reverse the number using a loop Compare it with the original number 🐍 Code: num = int(input("Enter a number: ")) original = num reverse = 0 while num > 0: digit = num % 10 reverse = reverse * 10 + digit num = num // 10 if original == reverse: print("Palindrome Number") else: print("Not a Palindrome Number") 📌 Key Learning: Learned how loops and basic logic can solve interesting problems. 💬 Next: Armstrong Number 🔥 #Python #Coding #100DaysOfCode #Learning #CSE
To view or add a comment, sign in
-
-
🔁 Python Revision – Tuples Continuing my Python fundamentals revision 🐍 In this session, I focused on: ✔️ Tuples (creation and properties) ✔️ Indexing and slicing ✔️ Immutable nature of tuples ✔️ Tuple methods (count, index) Practiced using tuples for storing fixed and ordered data, and understood how immutability can help in writing safer and more efficient code. Documented my practice in a Jupyter Notebook and shared it as a PDF to track my progress. Learning when to use tuples vs lists for better data handling 📊 Next: functions and applying concepts to real-world problems 🚀 #Python #Revision #Tuples #Programming #DataAnalytics #LearningJourney #Coding
To view or add a comment, sign in
-
🐍 Day 22 of My 30-Day Python Learning Challenge Today I improved my Log File Analyzer by allowing user input (file name) instead of hardcoding. 📌 Code: filename = input("Enter file name: ") with open(filename, "r") as file: content = file.read().lower() print(content[:100]) # preview first 100 characters 📌 Why this matters? • Makes the program flexible • Works with any file • Closer to real-world usage 📊 Quick Question What happens if the user enters a wrong file name? A) Program crashes B) Empty output C) None D) Skips execution Answer tomorrow 👇 #Python #MiniProject #UserInput #LearningInPublic #SoftwareDeveloper
To view or add a comment, sign in
-
🚀 Python Practice – Function Examples Taking my Python learning a step further by practicing real-world function-based problems 🐍 In this session, I worked on: ✔️ Temperature Conversion (Celsius ↔ Fahrenheit) ✔️ Password Strength Checker ✔️ Shopping Cart Total Cost Calculator ✔️ Palindrome Checker ✔️ Factorial using Recursion These examples helped me understand how functions can be used to solve practical problems and write reusable, structured code. A big thanks to Krish Naik Sir for his amazing teaching and clear explanations 🙌 Documented all my practice in a Jupyter Notebook and shared it as a PDF to track my progress. Learning by building real logic step by step 📊 #Python #Functions #Practice #LearningJourney #DataAnalytics #Coding
To view or add a comment, sign in
-
I used to think errors were just problems… now I’m learning they’re part of the design. Today’s Python MahaRevision ⚙️ Chapter 12: Advanced Python (Part 1) This chapter felt like moving from basics to writing more robust code: → Exception handling (try-except) → Raising exceptions → try with else & finally → global keyword → __name__ == __"main"__ → enumerate function → List comprehensions A lot of small concepts—but each one adds more control and clarity to how code behaves. Practice set done: Handled errors in programs, experimented with custom exceptions, used enumerate for cleaner loops, and practiced writing compact code using list comprehensions. Some parts were new, some a bit tricky… but overall it felt like leveling up from just writing code to writing better code. Still learning, still improving. #Python #LearningInPublic #CodingJourney #Programming #AdvancedPython
To view or add a comment, sign in
-
Task 2 : Calculator 🚀 Built a Simple Calculator in Python! I recently worked on a basic yet fundamental Python project—a Simple Calculator that performs operations like addition, subtraction, multiplication, and division. 💡 Key Highlights: Took user input using input() Converted values into float for accurate calculations Used conditional statements (if) to perform operations Created a simple menu-driven interface 🔧 This project helped me strengthen: Python basics User input handling Conditional logic Code structuring 📈 Small projects like this are the building blocks for mastering programming and problem-solving. Looking forward to building more such projects and improving my skills! #Python #Programming #Coding #BeginnerProjects #Learning #TechJourney #Codsoft Here is my demo video
To view or add a comment, sign in
-
📘 Python Learning – Day 8 Highlights 🐍 Today’s class was about writing smarter and more flexible functions 👇 🔹 Variable Scope & LEGB Rule: Learned how Python searches variables → Local → Enclosing → Global → Built-in 🔹 Local vs Global Variables: Understanding where variables can be accessed and used 🔹 Advanced Arguments: ✔ *args → handles multiple positional arguments (as tuple) ✔ **kwargs → handles keyword arguments (as dictionary) 🔹 Flexible Functions: Created functions that can take unlimited inputs and return dynamic results 💡 Example: def add(*args): return sum(args) Step by step, moving towards writing more professional Python code 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
To view or add a comment, sign in
-
-
At this point, Python is starting to feel less like a language… and more like a toolkit. Today’s Python MahaRevision 🧠 Chapter 13: Advanced Python (Part 2) This chapter introduced some really powerful and practical concepts: → Virtual environments → pip freeze (managing dependencies) → Lambda functions → bin() method → format() function → map, filter, reduce It’s interesting how these tools make code shorter, cleaner, and more efficient—once you understand how to use them properly. Practice set done: Worked on applying lambda functions, transforming data using map/filter, experimenting with reduce, and managing environments and dependencies. Some concepts felt a bit abstract at first (especially map/filter/reduce)… but with practice, they started making more sense. Biggest takeaway: Better tools don’t just make coding easier—they change how you think about solving problems. Still exploring, still improving. #Python #LearningInPublic #CodingJourney #Programming #AdvancedPython
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