📘 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
Python Strings & Conditional Logic
More Relevant Posts
-
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
To view or add a comment, sign in
-
Excited to share my structured study notes on “Loops in Python” 🐍 These notes cover fundamental concepts including: ✔️ What is a loop ✔️ Types of loops (for & while) ✔️ Loop control statements (break, continue, pass) ✔️ range() function ✔️ Practical examples for better understanding I created this to simplify core programming concepts and make learning more visual and easy to grasp. Whether you're a beginner or revising basics, these notes can be a helpful resource. Always striving to improve my skills and share knowledge with others in the tech community. #Python #Programming #Coding #Learning #ComputerScience #StudentLife #TechEducation
To view or add a comment, sign in
-
-
📘 Python Learning – Day 7 Highlights 🐍 Today’s class was all about improving coding efficiency and writing cleaner Python code 👇 🔹 Loops Revision: Practiced for & while loops with real examples 🔹 Loop Control: Used break, continue, and enumerate() for better control 🔹 List Comprehension: Learned a shorter, more Pythonic way to create lists in one line 🔹 Functions Basics: ✔ Reusable code using def ✔ Passing arguments & returning values 🔹 Utility Functions: Small, reusable functions for common tasks (like even/odd check, calculator, etc.) 💡 Example: [x**2 for x in range(1,6)] → creates squares in one line Writing cleaner, smarter, and more efficient code step by step 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
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
-
-
🚀 Day 5 – Exploring String Methods in Python Continuing my learning journey with @Global Quest Technologies! Today’s session focused on working with strings and their powerful built-in methods: 🔹 strip() and other essential string methods like split(), join(), replace() 🔹 Case conversion methods – upper(), lower(), swapcase(), title(), capitalize() 🔹 String checking methods – startswith(), endswith() 🔹 String formatting techniques 🔹 Program to accept a string and find its reverse These concepts are very useful for handling and manipulating text efficiently in Python. ✨ Each day brings new knowledge and skills! #Python #LearningJourney #Programming #Coding #Growth
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
-
-
🎯 Tech Learning Journey - Day 05: Python Error Handling - Graceful Failures! Error handling lets your code handle unexpected situations without crashing completely. Instead of your program stopping when something goes wrong, you catch the problem and decide what to do next. try: result = 10 / 0 except ZeroDivisionError: print\("Oops, you can't divide by zero!"\) result = 0 print\(f"Result: \{result\}"\) # Still runs smoothly Where I use this: User input validation, API calls that might fail, and file operations that could go wrong. #Python #Coding #Programming #ErrorHandling
To view or add a comment, sign in
-
-
📘 Python Learning – Day 6 Highlights 🐍 Today’s class focused on Dictionaries & Loops — key concepts for real programming! 🔹 Dictionaries: Store data using key–value pairs Access, update, and manage data easily using methods like keys(), values(), items(), get() 🔹 Loops in Python: ✔ for loop → when iterations are known ✔ while loop → runs based on condition 🔹 Control Statements: break → stop loop continue → skip iteration 🔹 Practice Programs: ✔ Student record using dictionary ✔ Prime number checker ✔ Factorial calculation 💡 Learning how to store structured data and control program flow step by step 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
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
-
🚀 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
-
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