Day 02 of my #30DaysOfPython journey was all about the fundamentals that make everything else easier to understand. 🐍 Today I visited three important basics: 🔹 Built-in functions Python comes with a bunch of functions ready to use right away — no extra setup needed. A few examples: print(), len(), type(), int(), str(), float(), list(), dict(), sorted() 🔹 Reserved words Some words are already taken by Python and cannot be used for variable or function names. Examples include: false, true, class, def, if, assert 🔹 Variables Variables are basically labels for storing data in memory. One thing I found useful today is that variable names should actually make sense — no random names, no numbers at the start, and no special characters or hyphens. I also learned that assigning a value to a variable is called variable declaration, and multiple variables can even be declared in a single line. And finally, input() is what makes programs interactive by letting us take input from the user. A simple topic, but one that matters a lot. The basics may look small, but they quietly shape everything that comes next. Github Link - https://lnkd.in/gUQvkhyz #Python #30DaysOfPython #LearningInPublic #Programming #SoftwareDevelopment #CodingJourney
Python Fundamentals: Built-in Functions, Reserved Words, Variables
More Relevant Posts
-
Week 3 of #100DaysOfCode — done! 🎉 This week I started thinking in objects. Topics covered: 🧱 Classes & Objects → What OOP actually is (and why it matters) → Classes, instances, attributes, methods → public, _protected, and __private attributes → __init__, self, and how Python works under the hood 🔒 Properties → @property — the Pythonic way to write getters & setters → No more get_age() / set_age() — just person.age ✅ ⚙️ More Classes → __str__ vs __repr__ — and why both matter → Class attributes vs instance attributes → @classmethod and @staticmethod → __dict__, getattr, dynamic attributes I’ve structured my learning into notes and practical examples to better understand the concepts : https://lnkd.in/epaBymnJ 21 days down. 79 to go. 💻 #100DaysOfCode #Python #LearningInPublic #Programming
To view or add a comment, sign in
-
I’ve put together a quick reference guide covering essential Python Dictionary and Set methods! 🐍 Whether you are just starting out with Python or need a quick refresher, this document walks through everything from basic dictionary operations like .get() and .update(), to mathematical set operations like .intersection() and .symmetric_difference(). It includes brief explanations and simple code snippets for each method to help you write cleaner, more efficient code. Check out the document below, and let me know your favorite or most-used method in the comments! 👇 #Python #Programming #Coding #DataStructures #PythonDeveloper #Cheatsheet
To view or add a comment, sign in
-
🔍 Explored something interesting while practicing OOP in Python While working on a simple cricket_player class, I wasn’t trying to learn anything new — just practicing. But during that, I noticed a small but important behavior. 👉 I used: >self.scores = [] to store player scores >add_score(score) to append values >avg_score() to calculate average 💡 What I realized: >The score inside add_score(score) is just a temporary value >But self.scores is the actual storage inside the object >Every time I call add_score(), I’m not passing data around — I’m updating the object’s internal state 📌 That means: The object itself keeps evolving as methods are called #Also noticed: >Even if I pass values as parameters elsewhere, the real source of truth remains self.scores >Functions can take inputs, but what matters is what part of the object they actually use This made me think of objects not just as structures, but as state containers that change over time Just a small observation from practice, but it clarified a lot. #Python #OOP #Programming #LearningByDoing #CodingJourney
To view or add a comment, sign in
-
-
Back in January, I started my Python journey with a simple goal: show up every day and learn something new. For the next few weeks, I shared topic-wise Python code and explanations on GitHub — covering everything from basics to core concepts like OOP, file handling, and more. I actually completed this journey about a month ago, but took some time to reflect on what I truly gained from it. Here’s what it taught me: • Consistency matters more than intensity • Writing code daily builds real confidence • Strong fundamentals make everything easier later It wasn’t always easy to stay consistent, but looking back, it was completely worth it. If you're just starting out, don’t overthink it — just begin and keep going. 🔗 GitHub: https://lnkd.in/g99jWh5p #Python #LearningInPublic #Consistency #CodingJourney
To view or add a comment, sign in
-
Thinking in Blueprints (Classes & Constructors) Focus: Introduction to OOP and the __init__ method. Day 9(06-04-2026): Today, my perspective on coding shifted. I moved away from just writing "steps" and started thinking in Objects. In Python, everything can be modeled after the real world using Classes. The big breakthrough today: Classes vs. Objects: A Class is the blueprint (like a drawing of a car), and the Object is the actual thing (the car you can drive). The Constructor (__init__): I learned how to use the "dunder init" method to give my objects their initial data the moment they are created. The self Keyword It’s a bit more abstract than what I’ve done before, but it makes the code so much more organized and powerful. #OOP #PythonProgramming #Day9 #ObjectOriented #CodingConcepts
To view or add a comment, sign in
-
Have you ever needed to add a math description for your Python function but found it time-consuming? Non-programmers cannot easily read Python logic. However, manually converting it to LaTeX is slow and quickly becomes outdated as the code changes. latexify_py solves this with a single decorator, generating LaTeX directly from your function so the math stays readable and always in sync with the code. Key capabilities: • Three decorators for different outputs: expressions, full equations, or pseudocode • Displays rendered LaTeX directly in Jupyter cells • Functions still work normally when called Plus, latexify_py is open source! Install it with "pip install latexify-py". 🚀 Article on 3 tools that convert Python code to LaTeX: https://bit.ly/4dS4gOB ☕️ Run this code: https://bit.ly/4bW2ycE #Python #LaTeX #DataScience
To view or add a comment, sign in
-
-
🎉 LaTeX expressions written easily from Python using Latexify library. pip install latexify_py Decorators: - @latexify.expression - @latexify.algorithmic 🍀 Check out Khuyen Tran’s blog post on how to write LaTeX using Latexify, Sympy and regular IPython: https://lnkd.in/gCtsnSDS #bookmark #python #latex #pylib #latexify #tipsandtricks
Have you ever needed to add a math description for your Python function but found it time-consuming? Non-programmers cannot easily read Python logic. However, manually converting it to LaTeX is slow and quickly becomes outdated as the code changes. latexify_py solves this with a single decorator, generating LaTeX directly from your function so the math stays readable and always in sync with the code. Key capabilities: • Three decorators for different outputs: expressions, full equations, or pseudocode • Displays rendered LaTeX directly in Jupyter cells • Functions still work normally when called Plus, latexify_py is open source! Install it with "pip install latexify-py". 🚀 Article on 3 tools that convert Python code to LaTeX: https://bit.ly/4dS4gOB ☕️ Run this code: https://bit.ly/4bW2ycE #Python #LaTeX #DataScience
To view or add a comment, sign in
-
-
Built a simple File Reader CLI in Python today. This project takes a file path as input, opens the file, reads its contents, and prints everything directly in the terminal. What I learned while building it: • Taking user input with input() • Opening files using open() • Reading file content with read() • Using with for safe file handling • Adding error handling with try/except Small projects like this are helping me strengthen my Python fundamentals and get more comfortable with writing clean, practical code. GitHub Repository: https://lnkd.in/gud495tr #Python #PythonProjects #CLI #CodingJourney #Programming #LearningInPublic
To view or add a comment, sign in
-
Today’s Python topic felt like the point where code stops being one-time work and starts becoming reusable. 🐍 Day 11 of my #30DaysOfPython journey was all about the basics of function, and this one was a big reminder that good code is not just about writing more — it is about writing smarter. A function is a reusable block of code designed to do a specific task, and in Python, we define it using the def keyword. Today I explored: 1. How functions are created and called 2. How return sends values back from a function and return None when nothing is returned 3. Passing parameters and arguments 4. Passing arguments using key-value style 5. Default parameters 6. Arbitrary arguments with *args 7. Arbitrary named arguments with **kwargs What stood out to me today was how functions make code feel organized, reusable, and much easier to scale. Instead of repeating the same logic again and again, you write it once and use it wherever needed. One more day, one more topic, one more step toward writing code that is cleaner, smarter, and actually built to last. Github Link - https://lnkd.in/gUhhaW_y #Python #LearnPython #CodingJourney #30DaysOfPython #Programming #DeveloperJourney
To view or add a comment, sign in
-
Today’s Python lesson was a quiet reminder that time is one of the most useful things code can help us handle. 🐍 Day 16 of my #30DaysOfPython journey was all about date and time. Python’s date and time module helps us work with: 1. current date and time 2. formatted date strings 3. converting strings into datetime objects 4. time objects 5. time differences and time spans A few things I explored today: 1. dir() and help() to check what a module offers 2. datetime.now() for current date, time, and timestamp 3. strftime() for formatting dates and time 4. strptime() for converting string dates into datetime objects 5. date() to get only day, month, and year 6. subtraction to find the difference between two time points 7. timedelta() to work with time intervals What stood out to me today was how Python does not just store time — it helps you shape it, compare it, and format it in ways that actually make sense for real projects. One more day, one more topic, one more layer of Python making everyday things easier to manage. Github Link - https://lnkd.in/gMy-QseU #Python #LearnPython #CodingJourney #30DaysOfPython #Programming #DeveloperJourney
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