Week5 Day1 of Learning Python — Understanding Functions Yesterday, I learned something simple but powerful about functions in Python: 👉 Defining a function is not enough. 👉 You must call the function for it to execute. Example: def greet(): print("Hello World") greet() # This is what actually runs the function Before now, I would define a function and wonder why nothing happened. Now I understand: • def creates the function • Calling it runs the function • Functions help organize code and avoid repetition It seems basic, but this concept changes how I structure programs. Every small concept builds the foundation for larger systems. On to the next lesson. #Python #DataScienceJourney #100DaysOfCode #WomenInTech #TechLearning
Defining and Calling Functions in Python
More Relevant Posts
-
Day 19 of my 20 Day Linkedin Challenge I recently learned about loops in Python. Here’s the simplest way to understand them: A loop tells the computer to repeat something. Instead of writing the same instruction multiple times you write it once and let the loop handle the repetition. For example: If you want to print numbers from 1 to 10, You don’t write 10 separate lines. You use a loop. This matters because computers are great at repetition. Loops allow you to: - save time - reduce errors - handle large tasks efficiently It’s one of those concepts that seems small but it’s actually very powerful. #AfricaAgility #ArtificialIntelligence #Python #MachineLearning #GIT20DayChallenge
To view or add a comment, sign in
-
📅 Day 1 – Learning Python Strings 🐍 Today I started learning about strings in Python. 🧠 What is a String? A string is a sequence of characters used to store text data (e.g., "welcome"). 📚 What I learned: • Strings are immutable (cannot be changed after creation) • We can access characters using indexing • We can reverse a string using slicing 💻 I also tried a small program to reverse a string (added in image 👇) 🚀 Learning step by step. #Python #LearningJourney #100DaysOfCode #BeginnerDeveloper
To view or add a comment, sign in
-
-
Day 2 of my #100daysoftraining Journey Today's focus on some python fundamentals by practicing through understand the code Here we use ✓ inputs and outputs ✓ variables ✓ Data types ✓ type casting these concepts not just learning, to understand how to use, why to use and where to use code #Codegnan #consistency #python #100daysoftraining #problemsolving #CodingJourney
To view or add a comment, sign in
-
-
🚀 Python Learning Journey – Understanding Functions 🐍 Today, I explored the concept of Function Creation in Python. 🔹 A function is defined using the def keyword. 🔹 It can take parameters as input. 🔹 The function body contains the logic to perform a task. 🔹 The return statement sends the result back to the function call. In the example, a function is created to add two numbers: ✔ It takes num1 and num2 as parameters ✔ Performs addition inside the function body ✔ Returns the final result ✔ The function is then called and the result is printed Understanding functions helps in writing reusable, clean, and modular code. Step by step, building strong Python fundamentals 💻✨ #Python #PythonLearning #CodingJourney #Functions #Programming #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Python Learning Journey – Day 13 Today, I learned about Matrices in Python. Here’s what I practiced: ✅ Creating a matrix using nested lists ✅ Accessing elements using row and column index ✅ Iterating through a matrix using loops ✅ Performing basic matrix operations ✅ Checking if a matrix is square Understanding matrices helped me improve my logic and nested loop skills. Step by step, my problem-solving ability is improving 💪 Consistency is building confidence every day. #Python #LearningJourney #Beginner #Day13 #Matrix #Coding #KeepLearning
To view or add a comment, sign in
-
-
Codebreaker 🧑💻 In this Python project, kids will analyse a graph to crack the code, whilst learning about lists and Python functions. This project is part of our More Python path, which is perfect for learners who already have a foundation knowledge of Python. Find out more here: rpf.io/more-python-blog #LearnPython #CodingForKids #CodingProjects
To view or add a comment, sign in
-
-
Day 15 of Python Learning 💻🐍 Today’s focus: input() and print() functions 🐍 These core concepts make programs interactive and meaningful. Building strong fundamentals, one day at a time. Consistency over everything. #Python #LearningPython #PythonBasics #CodingJourney #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Learning Python Step by Step Today I explored something simple yet powerful in Python — the range() function inside a loop. Here’s what I learned: for i in range(0, 12, 4): print(i) Output: 0 4 8 💡 Insight: Instead of writing multiple lines manually, range(start, stop, step) helps us control loops efficiently. It makes code cleaner and smarter. Small concepts like these are building my foundation stronger every day 💪 📚 Learning inspired by Code With Harry #Python #LearningJourney #Coding #Beginners #DataAnalytics #Consistency
To view or add a comment, sign in
-
Learn in Public — Day 14 Today I solved the Subset Array Problem using three different approaches in Python. Problem: Check whether array b is a subset of array a. Approaches I implemented: 1️⃣ Brute Force Check each element of b in a Time Complexity: O(m × n) 2️⃣ Sorting + Two Pointers Sort both arrays and compare Time Complexity: O(m log m + n log n) 3️⃣ Hash Set (Optimal) Convert array a into a set Check membership in O(1) Time Complexity: O(m + n) Key Learning: Whenever fast lookup is needed, hashing is often the best approach. #LearnInPublic #Python #DSA #CodingJourney
To view or add a comment, sign in
-
-
🔚 Week 5 of the program is coming to an end We’ve been revisiting Python, and everything is explained in a clear and structured way, which really helps to refresh the fundamentals and strengthen the foundation. Step by step, moving forward 🚀 nFactorial School #backend #python #learning #nFactorial #development
To view or add a comment, sign in
More from this author
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