Greetings everyone! 👋 Today I worked on a Python program to check whether a number is an Armstrong number. This was a great exercise to strengthen my understanding of loops, mathematical operations, and number manipulation logic in Python. 🔹 What the Program Does: The program takes a number as input from the user and checks if it is an Armstrong number. An Armstrong number is a number where the sum of its digits raised to the power of the total number of digits is equal to the number itself. 🔹 How the Logic Works: • The program first takes user input. • It calculates the number of digits using string conversion. • Using a while loop, it extracts each digit. • Each digit is raised to the power of the total number of digits. • The results are added and compared with the original number. 🔹 Example Outputs: ✔ 153 → Armstrong Number ❌ 54 → Not an Armstrong Number 🔹 What I Learned: • Practical use of loops and conditions • Mathematical logic implementation in Python • Working with numbers and digit extraction • Writing clean and simple algorithm-based programs This small project helped me improve my problem-solving skills and strengthened my programming fundamentals. Harish M #Python #Programming #LearningJourney #Coding #DataAnalytics #PythonBasics
Python Program Checks Armstrong Numbers with Loops and Math
More Relevant Posts
-
🧠 Python Beginners – This One Is For You! I entered 18 as input in this program. But here’s the real question… 👉 What will be the data type of the variable age? Many beginners assume it becomes an integer automatically. But does Python really work like that? 🤔 Take a look at the code in the image and choose the correct answer. Drop your option (A / B / C / D) in the comments 👇 Let’s test your Python fundamentals 💡 Understanding how input() works is extremely important in: ✔ Data validation ✔ User input handling ✔ Real-world applications ✔ Data cleaning in Data Analytics Small concepts. Big impact. 🚀 #Python #DataAnalytics #Programming #CodingChallenge #LearningJourney #TechCommunity — Kornel B
To view or add a comment, sign in
-
-
Most beginners start learning Python… but get confused about what to learn next. So we created a simple Python Roadmap that covers everything step-by-step: * Python Basics * OOP Concepts * Data Structures & Algorithms * Automation * Web Frameworks * Data Science Libraries If you're starting your Python journey in 2026, this roadmap can save you months of confusion. 📌 Save this roadmap for later. 🌐 Visit our website: thevinia.com Follow #thevinia for more interview prep resources and coding guides. Having Doubts in technical journey? 🚀 Book 1:1 demo with me : https://thevinia.com 🚀 Subscribe and stay up to date: https://lnkd.in/g-Rf8EgT follow instragram page : https://lnkd.in/g5jfDRxy 🚀 Get Complete React JS Interview Q&A Here: https://lnkd.in/gCs_jvJf #PythonDeveloper #CodingJourney #LearnProgramming
Learning Python can feel confusing if you don’t know where to start. So we created a simple Python Roadmap that takes you from basics → advanced concepts → real-world applications like automation, data science, and web development. If you're planning to start Python or want a clear path to follow, this roadmap will help you move step by step. 📌 Save this roadmap for later and start learning today. 🌐 Visit our website: thevinia.com Follow #thevinia for more interview prep resources and coding guides. Having Doubts in technical journey? 🚀 Book 1:1 demo with me : https://thevinia.com 🚀 Subscribe and stay up to date: https://lnkd.in/g-Rf8EgT follow instragram page : https://lnkd.in/g5jfDRxy 🚀 Get Complete React JS Interview Q&A Here: https://lnkd.in/gCs_jvJf #Python #Programming #LearnPython
To view or add a comment, sign in
-
-
Turning multiple images into a single PDF using Python 🐍 ⭐ Mini Project: Image to PDF Converter using Python I recently worked on a small Python project that converts multiple images into a single PDF file. Using the Pillow (PIL) library, the program takes several images and automatically combines them into one PDF document. This can be useful for organizing scanned notes, documents, or photos into a single file. Through this project, I got hands-on experience with Python libraries, file handling, and basic image processing. #Python #Programming #Automation #StudentProject #Learning
To view or add a comment, sign in
-
While revisiting Python fundamentals, I implemented a simple Hangman game in Python. The goal was to strengthen my understanding of core programming concepts such as: • Functions and modular program structure • Loops and conditional logic • Managing program state (correct vs missed guesses) • Handling user input and duplicate guesses • Implementing win/lose logic One interesting challenge was detecting the win condition for words with repeated letters (e.g., APPLE). I solved this by comparing the unique letters in the secret word with the letters guessed by the player. Code available on GitHub: https://lnkd.in/gbkT8FAj Small exercises like this are a great way to reinforce programming logic before applying Python to more complex data analysis and modeling problems. #Python #Programming #DataScience #CodingJourney #LearnInPublic
To view or add a comment, sign in
-
📅 Day 23 of My Python Full-Stack Journey — Logical Operators! Today I explored one of the most essential building blocks in programming — Logical Operators in Python 🐍 These three operators control the logic flow of your entire program: 🟠 and → Both conditions must be True 🟣 or → At least one condition must be True 🔵 not → Flips the boolean value pythonage = 20 has_id = True if age >= 18 and has_id: print("Access granted") # ✅ if age >= 18 or is_member: print("Welcome in!") # ✅ print(not False) # True Simple? Yes. But combine these and you can build powerful decision-making logic for login systems, access control, form validation, and more! The more I progress, the more I realize Python reads almost like plain English — and that's what makes it beautiful. 💡 📍 23 days down, 77 to go. Let's gooo! 🔥 #Python #LogicalOperators #Day23 #100DaysOfCode #FullStack #PythonForBeginners #LearningInPublic #CodingJourneyDay23 linkedinCode ·
To view or add a comment, sign in
-
-
Python Project: Simple Calculator 🖥️ In this video, I create a basic calculator in Python from scratch! 🔢💡 I recorded the entire process so you can see how to code, test, and fix errors step by step. 💻 What you’ll learn in this video: How to take user input in Python Perform basic math operations: addition (+), subtraction (-), multiplication (*), division (/), and modulo (%) Handle errors like division by zero Tips to practice Python coding and improve your skills 🔥 Practice Makes Perfect: Keep coding, experimenting, and learning from mistakes — that’s how you grow as a programmer! 💬 Motivation Quote: "Don’t just learn to code, code to learn. Every mistake is a step closer to mastery." 📌 Next Steps: Stay tuned! Tomorrow, I’ll create a To-Do List in Python, and later, I’ll merge both projects into one powerful program! #PythonProjects #PythonCalculator #LearnPython #CodingPractice #Motivation
To view or add a comment, sign in
-
📚 New article just published on SYUTHD! 🔖 Python 3.14 No-GIL Performance: How to Build Truly Parallel Multi-Core Applications 🏷️ Category: Python Programming 📖 Full article → https://lnkd.in/gDp8_fNq 👉 Follow our page for more tech tutorials: https://lnkd.in/gsJDptPM 💬 Telegram: https://t.me/nisethtechno 👍 Facebook: https://lnkd.in/gsKv3Dyn #PythonProgramming #Tech #Tutorial #Programming #TechBlog #2026
To view or add a comment, sign in
-
Day 4/100: Randomness and Data Structures in Python! Today was an exciting day! I shifted from simple variables to Lists, which allowed me to manage collections of data efficiently. I also explored how to make programs unpredictable using the Random module. What I mastered today: The random Module: Generating random integers and floats to create dynamic experiences. Python Lists: Learning how to store, access, and organize data. List Methods: Mastering .append() to add items and .extend() to combine lists. Offset & Indexing: Accessing specific items (and avoiding the famous "Index Out of Range" error!). Daily Project: Rock Paper Scissors Game I built a fully functional Rock Paper Scissors game where the user plays against the computer. It was a great way to combine if-else logic with random.randint(). Check out my code and progress here: https://lnkd.in/eYp3jYs7 #Python #100DaysOfCode #DataStructures #CodingJourney #RockPaperScissors #Programming
To view or add a comment, sign in
-
-
Python Handwritten Notes – Complete Topics Covered 🐍 Sharing my handwritten Python notes for easy learning and quick revision. These notes cover important Python fundamentals in a simple and beginner-friendly format: • Python basics & syntax • Variables, data types & operators • Conditional statements (if–else) • Loops (for / while) • Functions & logic building • Practice examples & handwritten notes Still learning, still improving — because strong basics create strong skills. All credit goes to the original creater of the material. 📩 Comment " Python" or DM me to get the notes. DM for Collaboration. #Python #CodingJourney #Programming #LearnPython #StudentLife #TechSkills #DailyLearning #Notes
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