Day 10 of my 90-Day Python Learning Challenge 🐍 Today I learned how to take user input in Python and how type casting works. This is an important concept because it allows programs to interact with users and convert data into the required type. What I learned today: • How to take input using the "input()" function • Understanding that "input()" returns data as a string by default • Converting data types using type casting (int(), float(), str()) • Writing small programs that take input from users and perform operations Here is a small example I practiced: name = input("Enter your name: ") age = int(input("Enter your age: ")) print("Hello", name) print("Next year your age will be:", age + 1) Learning how to take input from users makes programs more interactive and practical. Step by step, I’m building stronger Python fundamentals. Day 10/90 — Consistency is the key to growth 🚀 #Python #90DaysOfCode #LearningInPublic #CodingJourney #Programming
Python Input and Type Casting Basics
More Relevant Posts
-
My Python Journey: Lists + Loops Today, I focused on building a strong foundation in Python with lists and loops. I practiced 10 essential problems, including: 🔹Printing all elements of a list 🔹Accessing elements at even indices 🔹Filtering even numbers 🔹Finding numbers greater than a threshold 🔹Calculating the sum of all elements (without sum()) 🔹Counting total elements (without len()) 🔹Counting numbers greater than 5 🔹Finding the smallest number (without min()) 🔹Printing a list in reverse (using loops) 🔹Creating a new list with squares of numbers 💡 Key takeaways: Loops are powerful for iteration and data manipulation Conditional checks inside loops make Python very flexible Practicing manually (without built-ins) strengthens problem-solving skills. Here’s a glimpse of my list of numbers I practiced on: nums = [14, 13, 27, 34, 20, 16, 23, 82, 49, 83] Feeling confident and ready for Day 2 challenges! 🔥 #Python #DataAnalytics #CodingJourney #100DaysOfCode #LearningByDoing #ProblemSolving
To view or add a comment, sign in
-
-
🚀Day 4/30 – Python Learning Challenge 🐍 Today I explored Operators in Python — the symbols that allow us to perform operations on variables and values. Python provides several types of operators that make coding more powerful and efficient. 🔹 Arithmetic Operators – Used for mathematical calculations + - * / % // ** 🔹 Comparison Operators – Used to compare two values == != > < >= <= 🔹 Logical Operators – Used to combine conditional statements and or not 🔹 Assignment Operators – Used to assign values to variables = += -= *= /= 📌 Key Learning: Operators are the backbone of writing logic in Python. Mastering them helps in building conditions, calculations, and decision-making in programs. Learning something new every day and staying consistent with my 30-Day Python Challenge. 🚀 #Python #PythonLearning #CodingJourney #LearnInPublic #DataScience #Programming #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 23 of My Python Learning Journey 📘 Topic: Introduction to Looping Statements in Python Today, I learned about looping statements in Python. Loops are used to execute a block of code multiple times, which helps avoid writing repetitive code. 🔹 Types of Loops in Python 1️⃣ For Loop A for loop is used to iterate over a sequence like a list, string, or range. Example: for i in range(1, 6): print(i) Output: 1 2 3 4 5 2️⃣ While Loop A while loop runs as long as a given condition is True. Example: i = 1 while i <= 5: print(i) i += 1 Output: 1 2 3 4 5 💡 I also learned that loops can be controlled using statements like break, continue, and pass. Practicing loops is important because they are widely used in data processing, automation, and problem-solving. Looking forward to learning more and improving my coding skills! 💻✨ #Python #PythonLearning #CodingJourney #Loops #Programming #LearningPython
To view or add a comment, sign in
-
-
📅 Day 15 of my Python Learning Journey 🚀 The moment you understand how loops really work, Python starts feeling powerful. Today I explored a very interesting concept in Python — for-else in loops. While it may look simple, it introduces a smart way to handle search and validation logic inside loops. 💻 Here’s what I practiced today: 🔹 Understanding how for-else works in Python 🔹 Writing logic to check conditions within a list 🔹 Using break to stop the loop when a condition is satisfied 🔹 Printing a message when the condition is not found in the entire loop 🔹 Strengthening my understanding of loop control flow One key realization today: 🧠 The else block in a loop executes only when the loop finishes without hitting break. Concepts like these may seem small, but they are incredibly powerful when writing efficient programs and solving logical problems. Every day I’m realizing that consistency in learning programming builds confidence step by step. 📈 Day 15 complete — continuing the journey of becoming better at Python every day. . . . . . . . . . . . . . . . . . #Python #CodingJourney #100DaysOfCode #Programming #LearningInPublic #ComputerScience #BuildInPublic 🚀💻
To view or add a comment, sign in
-
-
🚀 Python Basics to Advanced Learning Series – Day 11 Today’s session was about understanding Tuples in Python. It helped me learn how to work with another important data structure. What I learned today: • Introduction to Tuples and how they work in Python • How to create tuples using different methods • Tuples can store heterogeneous data (different data types) • Tuples are immutable – once created, we cannot modify them • Understanding tuple packing and unpacking • Accessing tuple elements using indexing and slicing • Learning important tuple built-in methods like "count()" and "index()" • Practiced examples to understand tuple behavior clearly This session helped me understand the difference between lists and tuples, and when to use tuples in programming. I’m learning step by step as part of my Python Basics to Advanced Learning Journey at Global Quest Technologies, and I’m gaining more clarity every day. Excited to continue learning and exploring more concepts 🚀 G.R NARENDRA REDDY #Python #PythonProgramming #LearningJourney #Coding #Tuples #DataStructures #ProblemSolving #SoftwareDevelopment #TechLearning #Developers #GlobalQuestTechnologies
To view or add a comment, sign in
-
-
Day 2 of my Python & DSA learning journey 🚀 Today I learned the difference between print() and return in Python. ❓ What is the difference between print() and return? Both are used to work with values in Python, but they behave differently. 📌 print() • It displays the output on the screen • It does not send the value back to the function caller 📌 return • It sends the value back to the place where the function was called • It allows the value to be used later in the program 💻 Example in Python def add(a, b): return a + b result = add(5, 3) print(result) Here the function uses return to send the result back, and print() is used to display it. Output: 8 Understanding the difference between print() and return is very important when writing functions in Python. 🔥 Question for developers: When do you prefer using return instead of print() inside a function? #Python #DSA #Coding #Programming #LearningInPublic #100DaysOfCode
To view or add a comment, sign in
-
🚀 Just Published My First Medium Article! I’m excited to share my first blog on Medium: 👉 Python Basics – Part 1 As a beginner, I started exploring Python and realized something important — strong fundamentals make everything easier later. In this article, I’ve covered: ✔️ Variables and data types ✔️ Basic syntax and operations I also tried to keep it simple and beginner-friendly, so anyone starting their coding journey can understand it easily. 💡 Learning is not about knowing everything at once — it’s about starting small and staying consistent. This is just the beginning of my journey into tech and self-improvement. 🔗 Read my full article here: https://lnkd.in/dfFnCFm2 I’d love to hear your feedback and suggestions! #Python #LearningJourney #Beginners #Coding #SelfImprovement #WomenInTech
To view or add a comment, sign in
-
🐍 Day 4 of My 30-Day Python Learning Challenge Today I explored Conditional Statements (if–elif–else) — the logic that lets programs make decisions. 📌 Why it matters Real programs must react to different inputs. Conditions control the flow. 📌 Basic Syntax num = 10 if num > 10: print("Greater than 10") elif num == 10: print("Equal to 10") else: print("Less than 10") 📌 Another Example age = 18 if age >= 18: print("Eligible to vote") else: print("Not eligible") 💡 Key idea: Conditions evaluate to True or False, and Python runs the matching block. 📊 Quick question: What will this print? x = 5 if x > 3: print("A") elif x > 4: print("B") else: print("C") Answer tomorrow. #Python #CodingJourney #Programming #LearningInPublic #SoftwareDevelopment
To view or add a comment, sign in
-
Python Learning Journey – Day 7 🚀 Today’s focus was on working with lists and improving problem-solving using Python. I practised different list operations and real-world scenarios to better understand how data can be handled efficiently. Here’s what I worked on: • Reversing a list • Finding common elements between two lists • Extracting unique elements • Removing duplicates while preserving order • List concatenation and repetition • Removing elements based on index conditions • Inserting elements into a list • List comprehensions (squares, even numbers, word lengths) This session helped me get more comfortable with list manipulation and writing cleaner, more efficient Python code using comprehensions. Step by step, improving logic and coding confidence. Big thanks to VASU KUMAR PALANI and PythonLife for the continuous guidance and support. #Python #CodingJourney #LearnInPublic #PythonLists #Programming #100DaysOfCode #Consistency #TechSkills
To view or add a comment, sign in
-
-
🚀 Python Learning Journey Today’s learning was exciting! I explored some core concepts in Python 🐍 ==> Input & Output – Taking user input and displaying results ==> String Manipulation – Working with text (like slicing, formatting, and modifying strings) It’s amazing to see how programs can interact with users and process data in simple ways. Small concepts, but powerful building blocks for real-world applications. 💭 What I’m learning: Step by step, I’m getting more comfortable with coding and problem-solving. Looking forward to building mini projects soon! If you have suggestions or beginner-friendly challenges, I’d love to hear them 🙌 I request to you, kindly comments your suggestions and tips. #Python #LearningInPublic #CodingJourney #BeginnerProgrammer #Upskilling #TechJourney
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