Today while studying Python I worked on a simple but interesting exercise: building a small guessing game. The original version from the tutorial was already a good example of how to use: • while loops • conditions • counters to limit attempts Instead of copying it exactly, I tried to rethink the logic and implement my own version. I added a few improvements: • input validation (only alphabetic characters allowed) • case-insensitive comparison • slightly different control flow using while True and break It's a small exercise, but it's a good reminder that learning programming is not only about syntax; it's about thinking through problems and refining logic. Step by step, line by line. #Python #LearningToCode #Programming #ProblemSolving #ContinuousLearning
Francesco Romano’s Post
More Relevant Posts
-
Today at **QSpiders**, I learned about different types of **arguments in Python functions**. We covered: * **Positional arguments** * **Default arguments** * **Keyword arguments** * **Variable-length arguments** (`*args` and `**kwargs`) Understanding these helps in writing more flexible and reusable functions in Python. It was a great learning session and a good step forward in improving my programming skills. #Python #Learning #Programming #QSpiders #CodingJourney
To view or add a comment, sign in
-
Day 1 of my Python & DSA learning journey 🚀 Today I learned about Functions in Python. ❓ What is a Function? A function is a reusable block of code that performs a specific task. Instead of writing the same code again and again, we create a function and call it whenever we need it. 📌 Why functions are important: • They make code reusable • They organize the program • They reduce repetition in code 💻 Example in Python def add_numbers(a, b): result = a + b return result print(add_numbers(5, 3)) Here add_numbers() is a function that takes two inputs (a and b) and returns their sum. Output: 8 🔥 Question for developers: What was the first function you created when learning programming? #Python #DSA #Coding #Programming #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
Coding in Python using the IDLE environment with a for loop and nested loops. This snippet involves a loop to print the square of numbers from 1 to 15, and then a nested loop (a loop within another loop) to print star (*) patterns. This snippet results in finding the square of numbers from 1 to 15. The range function includes numbers up to 15 (inclusive) but not 16. The s variable is multiplied by itself to calculate the square and is printed to the console using the print statement. For each row, it creates a variable for a number between 1 and 5. Then for each j within that range, a star is printed. The print(end=”,”) makes sure to insert a comma at the end of each row before starting a new one. This is a great exercise for any aspiring programmer! #python #programming #coding
To view or add a comment, sign in
-
-
🚀 Python Mini Project – Turtle Race Game As part of my Python learning journey, I built a small and fun project using the Turtle Graphics module. In this program, multiple turtles race across the screen and the user can place a bet on which turtle will win. Each turtle moves forward with a random distance, making the race unpredictable and exciting. 🔧 Concepts I practiced in this project: • Python loops and conditional statements • Working with lists • Using the random module • Object-oriented programming concepts • Python Turtle graphics for visual output The user selects a color, the race begins, and the program checks whether the user's bet matches the winning turtle. Projects like this help strengthen programming logic while making learning enjoyable. Looking forward to building more Python projects as I continue improving my skills in programming and computer science. #Python #Programming #Coding #PythonProjects #LearningJourney #ComputerScience
To view or add a comment, sign in
-
Today I learned about Python Lists and List Methods 🐍 I explored: What is a List and how to create it Indexing and slicing Adding elements using append() and insert() Removing elements using remove() and pop() Sorting lists using sort() Reversing lists using reverse() Lists are very powerful for storing and managing data in real-world projects. Excited to keep learning and improving my Python skills 🚀 #Python #LearningJourney #Coding #Programming #DataAnalytics #Beginner
To view or add a comment, sign in
-
🚀 Python Learning Journey – Back to Fundamentals Today I revisited one of the most important concepts in Python — Conditional Statements (if, elif, else). Strengthening the basics always builds a strong foundation for advanced problem-solving. To reinforce my understanding, I built a Mini Quiz Game 🎯 using Python. 🔹 Features of my project: • Multiple-choice questions • Answer validation using conditional logic • Score tracking system • Final performance feedback based on score This small project helped me improve my logical thinking and understand how conditions drive real-time decision-making in programs. 💡 Key takeaway: Even simple concepts like conditional statements can be powerful when applied in real-world scenarios. Looking forward to building more such projects and improving step by step! 🚀 #Python #CodingJourney #LearningByDoing #Programming #Students #100DaysOfCode
To view or add a comment, sign in
-
One thing I’m realizing while learning Python: small projects teach more than tutorials. Over the past few weeks, I’ve been building small programs like: • Password Generator • Calculator using functions and loops While they look simple, they helped me understand: • How program logic works • Why functions make code reusable • How user input controls program flow Right now, I’m working on a CLI-based To-Do List application as my next step. Learning step by step and enjoying the process. If you’re also learning Python, what project helped you understand programming better? #Python #LearningInPublic #BeginnerProjects #CodingJourney #StudentDeveloper
To view or add a comment, sign in
-
One thing I realized while learning Python: tutorials alone are not enough. The real learning started when I began building small projects. The first three projects that helped me build my foundation in Python were: • Number Guessing Game • A simple To-Do List • Rock Paper Scissors These small projects helped me understand programming logic much better than passive learning. I made a short video sharing these beginner-friendly project ideas for anyone starting with Python. If you are learning programming, try building small projects like these. What was the first project you ever built while learning to code? #python #programming #learncoding #codingjourney #softwaredevelopment
To view or add a comment, sign in
-
🎯 Built a small Python game today — a Number Guessing Game! While practicing Python, I created a Number Guessing Game where the player gets 3 chances to guess a random number between 1 and 10. The program guides the user with hints: ⬆️ Guess higher ⬇️ Guess lower If the player cannot guess the number within the attempts, the program reveals the correct number. I also added a “Play Again” feature, so the game can restart without running the program again. Through this project, I practiced: 💻 Loops 🧠 Conditional statements 🎲 Random number generation 🔁 Program flow control 📽️ Attached is a short screen recording showing the code and the game running in the terminal. Small projects like this are a great way to strengthen programming logic and problem-solving skills. 💡 What was the first project you built when learning Python? #Python #PythonProgramming #Coding #Programming #LearnToCode #100DaysOfCode #CodingProjects #TechLearning #SoftwareDevelopment
To view or add a comment, sign in
-
📅 Day 18 of my Python Learning Journey 🚀 Programming becomes powerful when your code can interact with users. Today I continued practicing Arrays in Python, but with a more dynamic approach — taking input directly from the user and storing those values inside an array. 💻Here’s what I explored today: 🔹 Creating an empty array using the array module 🔹 Taking the array size (range) from the user 🔹 Using a loop to collect values from the user 🔹 Storing each value using append() 🔹 Printing the final array with all user inputs This exercise helped me understand how programs can collect data dynamically instead of using fixed values. 🧠 Key insight from today: Programs become more useful when they can accept input from users and process it logically. Practicing these fundamentals is helping me build a stronger foundation in Python and understand how real-world programs handle data. 📈 Day 18 complete — continuing the journey of learning Python step by step. . . . . . . . #Python #CodingJourney #100DaysOfCode #Programming #LearningInPublic #ComputerScience #BuildInPublic 🚀💻
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
Original Code