Proof of Work | Python Mini Project 🚀 As part of my Python learning journey, I recently built a custom Email Validation Program using core Python concepts. 🔍 What the project does The script validates an email ID by checking: Minimum length requirements Whether the email starts with an alphabet Presence of exactly one @ symbol Correct placement of . (dot) Absence of spaces and uppercase characters Allowance of valid characters like digits, _, @, and . Based on these checks, the program clearly identifies whether an email is valid or highlights the exact issue. 🧠 What I learned String indexing and traversal Built-in string methods like isalpha(), isdigit(), isspace() Conditional logic and control flow Importance of handling edge cases Writing readable and logical validation code This project may be small, but it helped me strengthen my fundamentals and build confidence to move toward more complex Python applications. Next goal: improving this validator using functions and exploring regex-based validation. #proofofwork #pythonlearning #programmingbasics #learningbydoing #techjourney #computerscience
More Relevant Posts
-
Accessing Elements in a Python Set Sets in Python are unordered collections of unique elements, meaning you cannot access items using indices like you can with lists or tuples. This can be confusing for those who are accustomed to indexed data structures, as trying to access a set element with an index will raise an error. The strength of sets lies in their enforcement of uniqueness. When working with sets, your focus shifts from direct access to checking for an item’s existence or iterating through the entire collection. The `in` operator is particularly useful, returning `True` if the item is present in the set and `False` otherwise. If you want to view all items in a set, converting it to a list is a common approach, facilitating indexed access when needed. However, if you simply wish to iterate through the items, using a loop to go through the set directly is often more efficient and cleaner, especially with larger sets. Quick challenge: How would you modify the code to print all items in the set without converting it to a list? #WhatImReadingToday #Python #PythonProgramming #Sets #DataStructures #LearnPython #Programming
To view or add a comment, sign in
-
-
🚀 📘 Deep Dive into Python Type Casting & Input Handling 💻🐍 Today, I explored how Python handles user input and data types. By default, the input() function always returns a string (str), regardless of whether the user enters numbers, decimals, or multiple values. To process input correctly, explicit type conversion is required using built-in functions: 🔹 int() → Convert to integer 🔹 float() → Convert to floating-point number 🔹 list() / split() → Convert input into collections 🔹 str() → Convert data into string format Understanding type casting is essential for: ✅ Input validation ✅ Data processing ✅ Avoiding runtime errors (ValueError, TypeError) ✅ Writing scalable and reliable programs This concept plays a key role in building robust Python applications and handling real-world user data efficiently. 📈 Continuously learning, practicing, and improving my problem-solving skills. 🚀 How do you handle user input validation in your projects? Let’s discuss 👇💬 #Python #SoftwareDevelopment #CodingSkills #Programming #TechLearning #DeveloperJourney #CSStudent
To view or add a comment, sign in
-
-
Day 14 – Python 🐍 | Number Logic Programs Today’s Day 14 was very important 💻 We learned number-based logic programs using while loops 👇 🔹 Topics Covered: 1️⃣ Print Each Digit (Reverse Order) → Break a number into digits and print them in reverse order Example: 345 → 5 4 3 2️⃣ Sum of Digits → Add all digits of a number Example: 123 → 1 + 2 + 3 = 6 3️⃣ Reverse a Number → Reverse the given number Example: 123 → 321 4️⃣ Palindrome Number Check → Check whether a number is the same forwards and backwards Example: 121, 1331 5️⃣ Automorphic Number → A number whose square ends with the number itself Example: 5² = 25, 76² = 5776 📌 What I Learned: Practical use of while loops Usage of % and // operators Improved logical thinking for exams and interviews. mentor: Sambhav Wakhariya academy: TECH ELITE ACADEMY #Python#PythonLearning#PythonDay14 #LearnPython#PythonProgramming #CodingLife#CodeDaily
To view or add a comment, sign in
-
-
28th's Python Practice – Calendar, Date & Time, and Mini Tasks In today’s Python practice session, I worked with date, time, and calendar-related modules, along with small interactive programs using loops and randomness. 🔹 Calendar Module Displayed a specific month using calendar.month(year, month) Printed the full calendar of a year using calendar.calendar(year) Took user input for year and month to generate dynamic calendars Understood how Python handles formatted calendar output 🔹 Date & DateTime Used date.today() to get the current date Used datetime.now() to get the current date and time Learned the difference between date and datetime objects 🔹 Time Module (Epoch Time) Used time.time() to get epoch time Converted epoch time to local time using time.localtime() Extracted components like day, month, year, hours, minutes, and seconds Printed formatted date and time using tm_* attributes 🔹 Mini Tasks & Programs Created a dice roll simulation using random.randint() with a loop Used conditional statements to allow the user to roll again or exit Implemented time.sleep() to introduce delays between outputs Practiced loops, user input handling, and flow control This session strengthened my understanding of time-based modules, user interaction, and real-world Python applications 🚀 #Python #CalendarModule #DateTime #TimeModule #Random #PythonPractice #BTech #LearningByDoing Pooja Chinthakayala
To view or add a comment, sign in
-
-
🐍 Day 8 of Learning Python Topic: Multiple-Valued Datatypes – Tuple Today I learned about Tuples in Python — one of the important multiple-valued (collection) data types. 🔹 What is a Tuple? A tuple is a collection that can store multiple values in a single variable. It is: ✔️ Ordered ✔️ Allows duplicates ❌ Immutable (cannot be changed after creation) 🔹 Why use Tuples? • Faster than lists • Protects data from accidental changes • Useful for fixed data like coordinates, days, etc. 🔹 Example: Copy code Python my_tuple = (10, 20, 30, 40) print(my_tuple) 🔹 Accessing elements: Copy code Python print(my_tuple[1]) # Output: 20 Learning Python step by step and enjoying the journey 🚀 Excited for what’s next! #Python #PythonLearning #100DaysOfCode #DataTypes #Tuple #CodingJourney #LearningDaily
To view or add a comment, sign in
-
-
📘 Day 4 – Python Learning Progress Today’s focus was on operators and conditional logic, which are essential for decision-making in Python programs. 🐍 What I practiced today: Arithmetic operators (+, -, *, /, %) Comparison operators (>, <, ==, !=) Logical operators (and, or, not) Writing programs using if–else conditions (even/odd, largest of numbers) Building logic step by step and improving problem-solving skills through practice. #PythonLearning #ProgrammingBasics #LogicBuilding #DailyPractice #Upskilling “Practicing basics every day to build strong foundations before moving to advanced topics.”
To view or add a comment, sign in
-
Learning Python becomes much easier when concepts are visual ✨ This post covers some of the most commonly used Python list methods in a simple and fun way: 🔹 append() – Add an element to the list 🔹 clear() – Remove all elements 🔹 copy() – Create a shallow copy 🔹 count() – Count occurrences of an element 🔹 index() – Find the position of an element 🔹 insert() – Add an element at a specific index 🔹 pop() – Remove an element by index 🔹 remove() – Remove a specific element 🔹 reverse() – Reverse the list order 📌 If you’re a Python beginner, mastering these methods is a must—they’re used everywhere in real-world programs. 💡 Save this post for quick revision 👍 Like & share if it helped 💬 Comment “Python” if you want more such visual explainers #Python #PythonProgramming #LearnPython #Coding #Programming #Developer #ComputerScience #BCA #Placements 🚀
To view or add a comment, sign in
-
-
Looping Through Sets: Understanding Uniqueness When working with sets in Python, it's vital to understand that they are designed to hold collections of unique items. The uniqueness is particularly beneficial for situations like eliminating duplicate entries from datasets. In the code provided, we demonstrate a straightforward approach to loop through a set, ensuring each element displays as distinct. One key characteristic of sets is that they are unordered collections, meaning their elements do not have a defined sequence. Consequently, each time you loop through the set, you may encounter items in a different order. This aspect is important if you require a specific order of data processing, but remember that with sets, you won’t get consistent iterations. However, the primary advantage of sets lies in their efficiency for membership testing and iteration compared to lists. When adding a new item using the `add` method, it automatically avoids duplicates, meaning if you attempt to insert a number that's already in the set—like `3` in our example—it does nothing. This feature makes sets especially useful when you need a concise and non-redundant representation of items. Familiarizing yourself with these functionalities can significantly streamline data management in your applications. Quick challenge: What will happen to the set if you attempt to add an existing item, such as `3`, after the loop? #WhatImReadingToday #Python #PythonProgramming #DataStructures #Sets #LearnPython #Programming
To view or add a comment, sign in
-
-
📘 Python Fundamentals: Expressions & Operators Expressions and operators are the backbone of every Python program. This visual breaks down how Python evaluates values and performs actions to produce results. 🔹 What is an Expression? An expression is a combination of values, variables, and operators that Python evaluates into a single result — just like a mathematical sentence. 🔹 Anatomy of an Expression Operands are the values, operators define the action, and together they produce a result (e.g., 10 + 5 = 15). 🔹 Types of Operators Covered ✔️ Arithmetic Operators – perform mathematical calculations ✔️ Comparison Operators – compare values and return True/False ✔️ Logical Operators – combine multiple conditions ✔️ Assignment Operators – assign and update variable values 🔹 Real Python Examples The poster also includes practical code examples to show how expressions work in real programs. Perfect for beginners building strong Python fundamentals and for anyone revising core concepts. #Python #PythonProgramming #LearnPython #PythonForBeginners #CodingTips #Programming #TechEducation
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