I practiced a few quick logic-based programs using if–else: Check if a number is a multiple of 5 → print “Hello” or “Bye” Check if the last digit is divisible by 3 Check if a number is a three-digit number 💡 Key takeaway: Even small exercises build strong logic and confidence in problem-solving! #Python #LearningJourney #ProblemSolving #CodingBasics #IfElse
Practiced logic-based programs in Python with if-else
More Relevant Posts
-
🐍 FREE Python Cheat Sheet – Save This! We just dropped a comprehensive Python Intermediate & Advanced Cheat Sheet covering: ✅ Decorators & Generators ✅ Async/Await & Threading ✅ Magic Methods & Type Hints ✅ Performance Optimization ✅ Common Pitfalls to Avoid Perfect for interviews, quick reference, or leveling up your Python game. 🚀 Which Python concept confuses you most? Drop it below! 👇 📥 Download free #Python #PythonProgramming #Coding #SoftwareDevelopment #TechTips #LearnPython #PythonDeveloper #Programming #TechCommunity #CareerGrowth
To view or add a comment, sign in
-
Commands in Python: 1)print- to print a message 2)type- to check the type or class of an object. 3)range- to generate a sequence of integers starting from 0 by default to n where n is not included in the generated numbers. 4)round- to round a number to a given precision in decimal digits. 5)input- to take input from the user. #HaveANiceDay #DataAnalytics #PythonBasics
To view or add a comment, sign in
-
I successfully built and tested a command-line BMI (Body Mass Index) Calculator in Python. 🧮 It's a straightforward tool that prompts a user for their weight (in kg) and height (in meters), then instantly calculates and categorizes their BMI. Check out the short demo video to see it in action! 🎬 💡 This project was a great way to solidify my Python fundamentals. A big thank you to Oasis Infobyte for the opportunity to work on this task! #pythondeveloper #codingproject #softwaredevelopment #tech #computerscience #pythonprogramming #oasisinfobyte
To view or add a comment, sign in
-
Today I solved an interesting Set Theory problem using Python 💻 The task was to determine whether one set is a subset, superset, or equal to another — without using any built-in functions! 🧩 Problem Statement: Write a Python program to check whether Set1 is a subset, superset, or equal to Set2. If none of these, print "No subset or superset relation". 🧠 Approach (without built-ins): #Python #DSA #CodingJourney #ProblemSolving #MERNStackDeveloper #100DaysOfCode #LearnByBuilding #CodeNewbie #ProgrammingChallenge #PythonDevelopers #LinkedInCodingCommunity
To view or add a comment, sign in
-
-
Hello connection! Exploring Python in greater detail today! I've been concentrating on functions, and I adore how straightforward yet effective they are. In essence, a function is a mini-program that performs a single task. The finest aspect? It keeps everything neat and orderly by allowing you to reuse code repeatedly. (This is known to programmers as "Don't Repeat Yourself," or DRY.) Def is the keyword that starts every function! #LearningToCode #DRYCode #Functions #Digitinstitute #Python #CodingBasics
To view or add a comment, sign in
-
📌 Day 6 of My #50DaysOfPython Challenge 🐍 Today’s task was to check whether a number is Prime or Not. 🔢 A prime number is a number greater than 1 that has no divisors other than 1 and itself. This concept strengthened my understanding of loops, conditional logic, and flag variables in Python. 🧠 What I Learned: 🔹 How to use a flag variable → A flag is like a status indicator that stores a True/False condition. → Example: We assume a number is prime (True) and change the flag if it isn’t. 🔹 How to optimize loops by checking only up to √n 🔹 Logical thinking and condition-based decisions Every line of code teaches something new 💪 On to Day 7 tomorrow! 🚀 #Python #CodingChallenge #50DaysOfPython #ProblemSolving #WomenInTech #LogicBuilding #LearnToCode
To view or add a comment, sign in
-
📅 Python Problem-Solving Practice 💡 Topic: Check if a Given Year is a Leap Year A year is called a leap year if: It is divisible by 4, and Not divisible by 100, unless it is also divisible by 400. ✅ Example: Input: Year = 2024 Output: Leap Year Small concepts like these help build strong logical thinking and problem-solving skills! 💪 #Python #ProblemSolving #CodingPractice #LearnToCode #10000coders #LogicBuilding
To view or add a comment, sign in
-
-
🚀 Python Set Methods – Quick & Powerful! Today I created a simple visual guide that covers the most useful set methods in Python. If you’re a beginner, this poster will help you understand how sets actually make your code cleaner, faster, and more efficient. I’m sharing it here so you can save it, refer anytime, and practice daily. Let me know which method you want examples for—I’ll create a post on that too! If you have any Python-related queries feel free to reach out Anitha D #Python #PythonForBeginners #PythonLearning #WomenInTech #100DaysOfPython #AnithaTeachesPython
To view or add a comment, sign in
-
Ever use a "with" statement in #Python, and wonder what it does, and how it works? It's known as the "context manager protocol," and it goes far beyond opening files. Learn about Python's context managers, how they work, and how to write classes that can take advantage of them in this video.
To view or add a comment, sign in
-
Problem Solving Series - Day 1 Today's topic: Abundant Number in Python An Abundant Number is a number whose sum of proper divisors is greater than the number itself. For example, 12 + divisors are 1, 2, 3, 4, 6+ sum = 16 > 12 (Abundant!) In this reel, I've explained: What is an Abundant Number ✅️Step-by-step logic building ✅️Python implementation & output ✅️Start your problem solving journey with me one concept at a time! Comment "Day 1" if you want the source code! #python #problemsolvingseries #abundantnumbers #pythonprogramminglanguage #codingforbeginners #learnpython #codingchallenge #newbedutech
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