🚀 Day 20 of Learning Python – Understanding the input() Function Today I learned how Python takes user input using the input() function. This function allows a program to interact with users by accepting data during runtime. 🔹 input() pauses the program 🔹 Waits for the user to type something 🔹 Stores the entered value as a string 📌name = input("Enter your name: ") print(f"Hello {name}") fav1 = input("What is your favourite company? ") fav2 = input("What is your target role? ") print(f"Do you want to join {fav1} for {fav2} position?") 💡What’s happening here: • The program asks questions • Stores user responses in variables • Uses those values to create a fun, dynamic output ✨ This makes programs more interactive and user-friendly! #Python #LearningPython #LearnToCode #PythonBasics #CodingJourney #PythonJourney #Input #Day20
Understanding Python's input() Function
More Relevant Posts
-
Day 15 of #WhatILearnedToday 🐍 Today I learned about Python Dictionaries—one of the most powerful and commonly used data structures in Python. Dictionaries store data in key–value pairs, making data retrieval fast, flexible, and highly efficient. Understanding how to create, update, loop through, and use built-in dictionary methods really helped me see how Python handles real-world data structures. From APIs to configuration files and backend logic—dictionaries are everywhere. 💬 What’s your most-used Python data structure: list, dictionary, or set? #WhatILearnedToday #Python #PythonDictionary #Programming #PythonLearning #Upskilling #DeveloperJourney #ContinuousLearning
To view or add a comment, sign in
-
-
Day 12 | Mini Python Insight A small Python realization that made learning easier 👇 Instead of asking: ❌ “How do I write perfect code?” Ask: ✔️ “Can I make the logic clear?” Clean logic > fancy code. When learning Python, focus on: writing readable code understanding the flow fixing mistakes instead of fearing them Errors are not failures. They’re feedback. This shift alone made Python feel less scary and more logical. If you’re learning Python — what part feels confusing right now? #Day12 #PythonTips #PythonLearning #DataScienceBasics #AIWithPython #CodingJourney #LearningInPublic #BeginnerToPro
To view or add a comment, sign in
-
Today I discovered that Python functions come in 5 different types 🐍 A function is a named block of code that performs a specific task. You can think of it as a mini-program inside your main program that helps keep code clean, reusable, and organized. Here are the 5 types: 1️⃣ Built-in Functions – print(), len(), abs(), range() 2️⃣ User-Defined Functions – created using the "def" keyword 3️⃣ Lambda Functions – small anonymous functions using "lambda" 4️⃣ Recursive Functions – functions that call themselves 5️⃣ Higher-Order Functions – functions that take other functions as input or return them (e.g., map(), filter(), reduce()) Still learning step by step, but understanding these basics makes Python feel much more powerful 💪 What was the first Python concept that confused you when you started? #Python #DataScience #LearningInPublic #Programming #100DaysOfCode #CareerSwitch
To view or add a comment, sign in
-
-
Learning Python: if, elif, and else made simple Today I discovered why Python’s elif statement is so powerful. When you only have two conditions, if and else are fine. But real-world logic usually has more than two rules 👀 Example: ✅ Username must be at least 3 characters ❌ Must not exceed 15 characters ❌ Should not contain numbers Instead of messy nested if statements, Python gives us elif to keep code: ✔️ Cleaner ✔️ More readable ✔️ Easier to extend 💡 Why it matters: Branching with if / elif / else is where programs start thinking and deciding, from login systems to automation scripts. Still learning, still building 💪 One condition at a time 💬Your turn: Have you struggled with nested if statements before? Share your experience below ⬇️ #Python #PythonTips #LearningToCode #100DaysOfCode #ProgrammingBasics #BeginnerDeveloper #CodeNewbie #GooglePython
To view or add a comment, sign in
-
-
Day 5 of my Python Learning Journey 🚀 Today, I learned about Type Casting in Python — specifically which data types cannot be converted into others. Instead of memorizing everything, this table helped me clearly understand conversion limitations across Python data types. Key learnings 👇 Type casting creates a new object; the original data remains unchanged complex cannot be converted to int or float dict converts only to key-based collections range converts only to collection types, not numeric or string Not all data types are interchangeable, and knowing limitations avoids errors 📊 The image shows a 3-column overview: Data Type → Function Applied → Non-Convertible Types Understanding what cannot be converted is just as important as knowing what can. 📚 Strengthening fundamentals, one concept at a time. 🚀 Next up: slicing and expression #PythonLearning #Day5 #TypeCasting #PythonBasics #AIMLStudent #LearningJourney #DailyLearning #ProgrammingBasics
To view or add a comment, sign in
-
-
🌙 Day 10/100 | #100DaysOfCode 🚀 Today I explored List Operations in Python — and honestly, lists are SUPER powerful! 🐍✨ Here’s what I learned today 👇 🔹 append() – Add an item at the end of the list 🔹 insert() – Add an item at a specific position 🔹 remove() – Remove an item by value 🔹 pop() – Remove an item by index 🔹 sort() – Arrange items in ascending order 🔹 reverse() – Reverse the whole list 🔹 len() – Find total number of items in the list Small operations, but they make data handling so much easier and cleaner 💻📊 Step by step, building strong basics in Python 💪 Consistency over perfection — always! 👉 Tomorrow, more learning, more growth 🚀 #Python #100DaysOfCode #LearningInPublic #PythonLists #CodingJourney #DeveloperLife #DailyLearning #TechSkills #Consistency
To view or add a comment, sign in
-
Most Python developers know dictionaries. Few actually use them effectively. When I started learning Python, I used dictionaries only for basic key-value storage. But real productivity came when I understood dictionary methods properly. These 12 Python dictionary methods are not “advanced”, they’re essential for writing clean, fast, interview-ready code. What you’ll find inside this infographic: • Safe key access without errors • Faster lookups & clean checks • Simple ways to merge, remove, and inspect data • Tools you’ll use in real projects, not just tutorials Mastering small methods will help so much in solving problems. If you’re learning Python or using it daily: - Save this - Revisit it - Apply 1–2 methods in your next script Which dictionary method do you use the most? #Python #PythonProgramming #Programming #Coding #LearnPython #BackendDevelopment #SoftwareDeveloper #DeveloperCommunity
To view or add a comment, sign in
-
-
🚀 Python Practice | Match-Case Statement Today, I practiced a menu-driven Python program using the match-case statement 🐍 This program allows users to: ✔️ Check whether a number is Even or Odd ✔️ Check whether a number is Positive, Negative, or Zero ✔️ Calculate the Square of a Number This practice helped me understand: How match-case works in real scenarios Writing clean and readable conditional logic Improving logical thinking step by step 📈 Consistency + daily practice = real improvement Learning Python one concept at a time 💪 If you’re also learning Python, let’s connect and grow together! 💬 Feedback and suggestions are welcome. #Python #SoftwareDevelopment #PythonProjects #Coding #DeveloperJourney #LearnToCode #ComputerScience
To view or add a comment, sign in
-
-
Time Complexity in Python Operations In Python, performance issues rarely come from syntax. They come from misunderstanding how common operations scale as data grows. Key complexity considerations: - List access by index: constant time, but insertions and deletions in the middle are linear - Dictionary and set lookups: constant time on average, dependent on hashing - Membership checks: linear for lists, constant time for sets and dictionaries Sorting operations: typically O(n log n), regardless of data structure - Understanding these behaviors helps avoid hidden bottlenecks and supports writing code that scales predictably. Good performance starts with knowing how your code grows. 🚀 #Python #DataStructures #Algorithms #CodeOptimization #Performance
To view or add a comment, sign in
-
Python for Data Cleaning Good analysis starts with clean data. With Python (pandas), you can: 🧹 Handle missing values 🧹 Remove duplicates 🧹 Convert data types 🧹 Detect outliers Clean data = more reliable results. 📌 Tip: Always inspect your dataset before running models. Always at your service for assistance. #PythonForResearch #DataCleaning #ResearchMethods #DataScience #AcademicLife
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