📚 Day 30/130 — Python Variables Today in my Python Programming Series, let’s understand one of the most important basics 👇 🔹 What is a Variable? A variable is a container used to store data values in a program. 🔹 Simple Understanding: 👉 Variable = Name that stores a value 🔹 Example: x = 10 name = "Gowthami" 👉 Here, "x" stores a number and "name" stores text 🔹 Rules for Variables: • Must start with a letter or underscore (_) • Cannot start with a number ❌ • No spaces allowed • Case-sensitive (name ≠ Name) 🔹 Types of Values Stored: • Integer → 10 🔢 • String → "Hello" 📝 • Float → 3.14 📊 • Boolean → True/False ✅ 🔹 Why Variables are Important? • Store data for reuse • Make programs dynamic • Improve readability 🔹 Key Idea: 👉 Variables help us store and use data easily in programs 📊See the diagram below for better understanding 📌 Tomorrow’s Topic: 👉 Python Data Types #Python #Programming #Coding #TechLearning #LearningInPublic #Students #Developer #100DaysOfCode
Sheela Gowthami’s Post
More Relevant Posts
-
🚀 Python Variables Explained (Beginner Friendly) Today I practiced Python variables and naming conventions 1. Basic Variable Declaration name = "Ankaj" age = 36 salary = 50000 print("Name:", name) print("Age:", age) print("Salary:", salary) 2. Variable Naming Rules user_name = "Ankaj" age1 = 25 _salary = 30000 print(user_name) print(age1) print(_salary) 3. Constants Convention (Uppercase) PI = 3.14 MAX_SPEED = 120 COMPANY_NAME = "ABC Pvt Ltd" print(PI) print(MAX_SPEED) print(COMPANY_NAME) Key Learnings: * Variables store data values * Naming rules matter in clean code * Constants are written in UPPERCASE by convention I’m building my Python skills step by step Follow Ankaj Python Hub for my daily learning journey #Python #Coding #LearnPython #100DaysOfCode #Programming
To view or add a comment, sign in
-
🚀 Python Variables Explained (Beginner Friendly) Today I practiced Python variables and naming conventions 1. Basic Variable Declaration name = "Ankaj" age = 36 salary = 50000 print("Name:", name) print("Age:", age) print("Salary:", salary) 2. Variable Naming Rules user_name = "Ankaj" age1 = 25 _salary = 30000 print(user_name) print(age1) print(_salary) 3. Constants Convention (Uppercase) PI = 3.14 MAX_SPEED = 120 COMPANY_NAME = "ABC Pvt Ltd" print(PI) print(MAX_SPEED) print(COMPANY_NAME) Key Learnings: * Variables store data values * Naming rules matter in clean code * Constants are written in UPPERCASE by convention I’m building my Python skills step by step Follow Ankaj Python Hub for my daily learning journey #Python #Coding #LearnPython #100DaysOfCode #Programming
To view or add a comment, sign in
-
Day 2/100 Series 🐍 What is Python? Python is a simple and powerful programming language used to build: 💻 Websites 📊 Data analysis 🤖 AI & automation 👉 Why learn Python? Easy for beginners High demand skill Used in real-world projects Data Types 🧠 Python Data Types (Basics) 👉 int → whole numbers (5) 👉 float → decimals (3.5) 👉 string → text ("hello") 👉 bool → True/False 💡 Every value has a type. Which one confuses you most? 👇
To view or add a comment, sign in
-
-
🐍 Learn Python - From Basics to Real-World Applications Python is one of the most powerful and beginner-friendly programming languages in the world. Whether you want to build software, analyze data, create visualizations, or start your journey into machine learning, this course gives you a practical path to begin with confidence. What you’ll learn: 1. Installing and exploring the working environment 2. Variables and data types 3. Operators and control structures 4. Data structures: lists, tuples, and dictionaries 5. Functions 6. Classes 7. Data structures, files, and exceptions Applications of Python: 8. Data visualization and manipulation 9. Machine learning basics This course is designed to help you build a strong foundation and understand how Python is used in real projects. Register here: weledi.com/go/python Call/WhatsApp: +255 754 503 886 Start your Python journey today.
To view or add a comment, sign in
-
-
Today I explored some advanced concepts in Python functions and variable scope that are super important for writing clean and scalable code 💻✨ 🔹 What I learned today: ✅ Default Arguments → Functions can have predefined values if no argument is passed ✅ Variable Length Arguments → *args → Non-keyword arguments (tuple) → **kwargs → Keyword arguments (dictionary) ✅ Functions, Modules & Libraries → Functions = reusable blocks → Modules = file of functions → Libraries = collection of modules ✅ Types of Variables in Python 🔸 Local Variables → Defined inside a function → Accessible only within that function 🔸 Global Variables → Defined outside functions → Accessible throughout the program 💡 Understanding these concepts helps in writing modular, reusable, and efficient code Consistency is key 🔥 Learning step by step, growing every day 💪 ✨ Write once, reuse everywhere with Python functions! Global Quest Technologies #Python #PythonLearning #Functions #VariableScope #CodingJourney #LearnToCode #Developers #TechSkills #Programming #GlobalQuestTechnologies
To view or add a comment, sign in
-
-
🚀 Exploring Python Data Structures: The Building Blocks of Efficient Code In Python, choosing the right data structure is key to writing clean, efficient, and optimized programs. Here’s a quick overview of the four fundamental data structures every developer should master: 🔹 List Ordered, mutable, and allows duplicate elements. Ideal for storing collections that may change over time. 🔹 Tuple Ordered but immutable. Useful when data integrity is important and values should not be modified. 🔹 Set Unordered collection with no duplicate elements. Perfect for operations like union, intersection, and removing duplicates. 🔹 Dictionary (Dict) Stores data in key-value pairs. Highly efficient for fast lookups and structured data representation. 💡 Understanding when and where to use each of these structures can significantly improve both performance and readability of your code. 📌 Keep learning, keep building! Python offers endless possibilities when you master its core concepts. #Python #Programming #DataStructures #Coding #SoftwareDevelopment #LearningJourney
To view or add a comment, sign in
-
-
Practicing Python – Building a Simple Calculator As part of my Python learning journey, I practiced building a simple calculator program using functions. This project was implemented while following tutorials from Satish Dhawale. While watching the lesson, I tried to code along and understand how functions work in Python. Through this small exercise, I learned: 🔹 How to create and use functions 🔹 Handling user input 🔹 Using conditional statements 🔹 Writing cleaner and reusable code The calculator can perform operations like addition, subtraction, multiplication, division, and average calculation. Even though it’s a beginner-level project, it helped me understand how programming logic works. I’m continuing to practice more projects to strengthen my Python and data analytics skills. 💻 Learning one concept at a time and applying it through practice. #Python #LearningPython #CodingPractice #Programming #DataAnalytics #LearningJourney #BeginnerProgrammer
To view or add a comment, sign in
-
-
Today I continued my Python functions practice and learned the remaining two important types. Type 3 — Without Arguments & With Return Theory: Function does not take parameters Takes input inside the function Returns the result to the caller Output is printed outside the function Use case: When a function acts like a small tool that collects data and gives back a result. def sum_digits(): n = int(input("Enter number: ")) s = 0 while n > 0: s += n % 10 n //= 10 return s print(sum_digits()) Type 4 — With Arguments & With Return Theory: Function takes input as parameters Does not take input inside Returns the result This type is used in interviews, and real projects Use case: Reusable logic that can be called multiple times with different values. def sum_digits(n): s = 0 while n > 0: s += n % 10 n //= 10 return s print(sum_digits(1234)) Key Learning Same problem can be written in different function types depending on the need. Understanding function design is more important than the problem itself. I’m improving my Python fundamentals step by step #Python #Programming #Learning #CodingJourney #Functions
To view or add a comment, sign in
-
🎯 Tech Learning Journey - Day 04: Python File Handling - Keep Your Data Safe! File handling lets your Python programs talk to files on your computer - reading data from existing files or saving new data into files. It's like having a conversation between your code and your documents. # Writing to a file with open\('notes.txt', 'w'\) as file: file.write\("Hello, from Python!"\) # Reading from a file with open\('notes.txt', 'r'\) as file: content = file.read\(\) print\(content\) Where I use this: Saving user preferences, logging application data, and processing datasets from text or CSV files. #Python #Coding #Programming #FileHandling
To view or add a comment, sign in
-
-
Day 26 of #100DaysOfCode👩💻🚀 Today I learned about Getter, Setter, and 3 types of methods in Python OOP. Getter & Setter methods: Getters are used to access private data safely → `get_name()` Setters are used to update private data with validation → `set_age()` They help protect data and add control over how variables are read or changed. 3 Types of Methods in Python: 1. Instance method → Uses `self`, works with object data. Called by objects. 2. Class method → Uses `@classmethod` and `cls`, works with class variables. Called by class. 3. Static method → Uses `@staticmethod`, doesn’t use `self` or `cls`. Like a normal function inside class. One more step toward writing clean, secure OOP code. Special thanks to the CEO G.R NARENDRA REDDY Sir for constant guidance and motivation. #Python #OOP #GetterSetter #100DaysOfCode #LearningJourney #Programming
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
Good but try like this: 1)Strings 2) integers 3) Boolean 4) variables 5) float. Keep trying 💪, explore more 🫡.