Day 1 — Starting My Python Journey Today I practiced the basics of Python 🔹 Working with variables 🔹 Using the print() function 🔹 Performing basic operations Here’s a simple snippet I tried: name = "Ankaj" age = 34 print(name, age) a = 20 b = 10 print(a + b) # Addition print(a - b) # Subtraction print(a / b) # Division What I learned: Python makes it really easy to work with variables and perform operations without complex syntax. I’m documenting my journey as I learn every day Follow Ankaj Python Hub to grow with me https://lnkd.in/gx2yF2vF #Python #LearnPython #CodingJourney #100DaysOfCode #Beginner
Starting My Python Journey with Variables and Basic Operations
More Relevant Posts
-
Day 1 — Starting My Python Journey Today I practiced the basics of Python 🔹 Working with variables 🔹 Using the print() function 🔹 Performing basic operations Here’s a simple snippet I tried: name = "Ankaj" age = 34 print(name, age) a = 20 b = 10 print(a + b) # Addition print(a - b) # Subtraction print(a / b) # Division What I learned: Python makes it really easy to work with variables and perform operations without complex syntax. I’m documenting my journey as I learn every day Follow Ankaj Python Hub to grow with me https://lnkd.in/g3ayfy7M #Python #LearnPython #CodingJourney #100DaysOfCode #Beginner
To view or add a comment, sign in
-
Learn how to safely handle missing files in Python. When you try to open a file that does not exist in read mode, Python raises a FileNotFoundError. In this quick tutorial, you will see how to use a try except block to catch the error, create the file automatically, and keep your program running smoothly. This is perfect for beginners and real world applications like logs, configuration files, and user data. Master file handling in Python in under 90 seconds. #python #shorts #pythonerror #FileNotFoundError #exceptionhandling #tryexcept #filehandling #pythontutorial #learnpython #codingforbeginners #errorhandling #programmingtips #pythonprogramming #automation #codingshorts #fyp #viral #softwaredevelopment #pythonbasics #debugging
To view or add a comment, sign in
-
Python Tip of the Day 🐍 Choosing the right file mode in Python is more important than it seems. w and w+ may look similar, but they serve different purposes: w → Write only w+ → Write + Read Both modes create the file if it doesn’t exist and overwrite existing data, which makes them powerful—but also risky if used carelessly. Day 43 of building Python basics #Python #FileHandling #LearnPython #ProgrammingBasics #PythonTips
To view or add a comment, sign in
-
-
Rules for declaring python veriables:- 1) Must start with letters (a-z, A-Z) or underscore _ 2)Must not start with numbers (1 to .... ) 3) Variables are case sensitive ( python and Python both are different) 4) We cannot use keywords as variables ( if, def, while ...) Variable declaration is main part of any program. First impression will be starting with it, so while declaring variables need to take care. #python #learn #fast #beginner #automation
To view or add a comment, sign in
-
Today ill be talking about Python Livraries. So what is a library?. A library is a block of code that contains things like Functions, objects and classes and is used for a specific purpose which makes a programmer's life easier because Imagine a programmer writing a function every time he or she wanted to clean or understand their data during Machine Learning. I know this would be hectic and would take up a lot of time. And thats why we have and need libraries. In Python, we have various libraries which are used for specific tasks like for example the Pandas library is used to clean and analyse the data before feeding it to the model #AfricaAgility #20daylinkedinchallenge #Day1 #PythonLibraries
To view or add a comment, sign in
-
Understanding why Tuples are a crucial data structure in Python As a beginner in Python, learning about Tuple methods is essential for efficient coding In this article, you'll discover the various methods that can help you work with Tuples in Python, including index(), count(), min(), max(), and more TuplesInPython ITFresherResources DataStructureTips PythonForBeginners TechLab Read the full article 👉 https://lnkd.in/dsU8pPz7 #PythonTuples #TuplesInPython #ITFresherResources #DataStructureTips #PythonForBeginners #TechLab Code. Learn. Build. — TechLab by Neeraj
To view or add a comment, sign in
-
Day 7/30 – Python Coding Challenge 🐍 📌 LeetCode Problem 20: Valid Parentheses 💡 Problem: Check if a string of brackets is valid based on correct order and matching pairs. 🧠 What I learned: • Stack data structure • Handling nested structures • Efficient validation logic 💻 Example: Input: "([])" Output: True 🚀 Insight: Using a stack helps track opening brackets and ensures proper matching with closing ones. Small problems, big learning 💪 #30DaysOfCode #Python #LeetCode #Stack #CodingChallenge #ProblemSolving
To view or add a comment, sign in
-
-
💥 Day 40 of My 70-Day Python Learning Challenge 💥 Python Libraries🤔? In simple terms, it’s a collection of built-in tools that come with Python. You don’t need to install anything extra, you just import and use them. I realized I’ve already been using some of them, like math and random, without fully thinking about it. These modules make it easier to do things like calculations, generate random values, and handle different tasks without writing everything from scratch. This made me see that Python already gives you a lot of tools to work with. You just need to know they exist and how to use them. Still learning, still growing. 🚀 #70dayschallenge #python #module
To view or add a comment, sign in
-
I improved my first Python project. Initially, it only calculated averages and grades. Now I added: - Class statistics - Ranking system - Subject-wise toppers This helped me understand how to work with structured data and apply logic step-by-step. Small improvements, but real progress. Code: https://lnkd.in/dRwGrnhh #Python #DataScience #LearningInPublic #BeginnerProjects
To view or add a comment, sign in
-
Understanding Division in Python – Integer vs Float While practicing Python, I worked on a simple yet important concept: division operations. a = int(input()) b = int(input()) print(a // b) print(a / b) What’s happening here? // → Integer Division Returns only the whole number (quotient), discarding decimals / → Float Division Returns the exact result, including decimal values -> Example: If the input is: 4 6 Output will be: 0 0.6666666666666666 -> Key Takeaway: Understanding the difference between integer and float division is essential when solving real-world problems, especially in data processing and algorithm design. #Python #CodingJourney #100DaysOfCode #LearningPython #ProgrammingBasics
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