Day 15: PYTHON RECURSION (My TechRise Cohort 2.0 Journal) Today, I explored Recursion in Python a powerful concept where a function calls itself to solve smaller instances of a problem. Every recursive function has two key parts: 1. Base Case – the condition that stops the recursion. 2. Recursive Case – where the function calls itself with a modified argument. Examples of Recursion 1. Countdown Function: A simple recursive function that counts down from 5 until it stops at the base case. 2. Fibonacci Sequence: A classic example where each number is the sum of the two preceding ones. Recursion helps break down complex problems into smaller, more manageable steps — an essential concept in both Python programming and algorithm design. My journey in TechRise Cohort 2.0 continues to be inspiring! Each day, I uncover new layers of Python from lambda functions to recursion and I’m excited about how these skills build a strong foundation for AI and Machine Learning. #Python #Recursion #TechRiseCohort2 #AI #MachineLearning #PythonProgramming #CodingJourney #WomenInTech #DataScience #LearningNeverStops #TechJourney. Below is a short video showing some of the codes I ran in my VS Code environment.
More Relevant Posts
-
⚙️ Day 3 of my 30-Day Python Mastery Challenge! Today, I explored one of the most exciting fundamentals — operators in Python! 🧮 Arithmetic, comparison, logical, and assignment operators are the tools that make Python think and calculate. Here’s a quick example I practiced: a = 10 b = 3 print("Sum:", a + b) print("Power:", a ** b) 🧠 Key Takeaways: • Operators are the core of logic and calculations in any program. • Logical operators help in decision-making. • is and in make comparisons more powerful and readable. Up next → Day 4: Input and Output in Python! #Day3 #Python #PythonLearning #LearnToCode #CodingJourney #PythonForBeginners #100DaysOfCode #DevOps #Programming #SoftwareDevelopment #CodeNewbie #WomenInTech #TechJourney #DevelopersCommunity #PythonDeveloper #DataScience #AI #MachineLearning #CodingLife #CodeDaily #JaswanthLearnsPython
To view or add a comment, sign in
-
Many ask: Can non-programmers learn Agentic AI? Answer: Yes — but you need Python basics. The good news: coding in Agentic AI is simpler than you think. 🎁 Free roadmap 👉 https://zurl.co/84y2e #AgenticAI #Python #CareerGrowth
To view or add a comment, sign in
-
Many ask: Can non-programmers learn Agentic AI? Answer: Yes — but you need Python basics. The good news: coding in Agentic AI is simpler than you think. 🎁 Free roadmap 👉 https://zurl.co/84y2e #AgenticAI #Python #CareerGrowth
To view or add a comment, sign in
-
🚀 Python — the language of the near future! 🐍 With the rise of Machine Learning, AI, and Automation, Python is becoming an essential skill for everyone — not just developers. 💡 Knowing the fundamentals of Python empowers you to build, automate, and innovate faster than ever. ⚙️✨ Let’s keep learning, because the future is written in Python. 🧠💻 🚀 Kickstarting the Python Series! 🐍 Today’s topic: Introduction to Python — What, Why & Where it’s Used Python is not just another programming language — it’s the foundation of AI, Data Science, Web Dev, Automation, and much more! I’ll be posting short, practical Python notes every few days. Follow along to build your Python fundamentals from scratch 💪 #Python #DataScience #MachineLearning #LearningJourney #LinkedInLearning #CodingForBeginners
To view or add a comment, sign in
-
🐍 Python Learning –Day2 : Strings & Conditional Statements Today I continued my Python journey by diving into Strings and Conditional Statements, and it turned out to be a really insightful session. 🔤 Strings I spent time understanding how Python handles text — from concatenation to checking length, and even slicing different parts of a string. Negative indexing was something I never paid much attention to before, but it actually makes a lot of sense now. String methods like capitalize(), count(), find(), and replace() also showed me how powerful and flexible Python is when working with text. 🔎 Conditional Statements I revisited the basics of if, elif, and else. It’s interesting how these simple conditions form the backbone of decision-making in any program. Once the logic clicks, it really feels like you're teaching the computer how to “think.” Overall, today’s learning felt smooth and satisfying. Loving how Python becomes clearer with every small step. 🚀 #Python #CodingJourney #LearningInPublic #ProgrammingBasics #100DaysOfCode
To view or add a comment, sign in
-
Day 12 – STRINGS IN PYTHON 🐍✨ In today’s TechRise Cohort 2 class, I explored one of the most exciting parts of Python — Strings! I learned how to: 🔹 Find the length of a word using len() 🔹 Slice and access specific letters 🔹 Change text cases (upper, lower, title) 🔹 Replace words or letters 🔹 Combine (concatenate) strings 🔹 Format text dynamically using f-strings Here’s a quick example I enjoyed: x = "House" y = "Hold" z = x + y print(z) X = 20 a = f"I have {X} naira" print(a) Every new concept in Python makes coding feel more exciting and creative! 🚀 You can run this code and tell me what you got in the comment section. #TechRiseCohort2 #Python #AI #MachineLearning #Coding #DigitalSkills #LearningJourney
To view or add a comment, sign in
-
-
𝐏𝐲𝐭𝐡𝐨𝐧 𝐒𝐲𝐧𝐭𝐚𝐱 𝐌𝐚𝐝𝐞 𝐒𝐢𝐦𝐩𝐥𝐞; 𝐓𝐡𝐞 𝐅𝐨𝐮𝐧𝐝𝐚𝐭𝐢𝐨𝐧 𝐨𝐟 𝐂𝐥𝐞𝐚𝐧 𝐂𝐨𝐝𝐞 𝘗𝘺𝘵𝘩𝘰𝘯 𝘪𝘴 𝘰𝘯𝘦 𝘰𝘧 𝘵𝘩𝘦 𝘦𝘢𝘴𝘪𝘦𝘴𝘵 𝘭𝘢𝘯𝘨𝘶𝘢𝘨𝘦𝘴 𝘵𝘰 𝘴𝘵𝘢𝘳𝘵 𝘸𝘪𝘵𝘩, 𝘣𝘶𝘵 𝘰𝘯𝘭𝘺 𝘪𝘧 𝘺𝘰𝘶 𝘶𝘯𝘥𝘦𝘳𝘴𝘵𝘢𝘯𝘥 𝘪𝘵𝘴 𝘴𝘺𝘯𝘵𝘢𝘹. When I began learning Python, I focused on making the code run. Later, I realized something even more important: ✅ How your code looks matters just as much as whether it works. Indentation, colons, naming, comments; these simple details are what make Python clean, readable, and beginner-friendly. If you’re beginning your Python or Data Science journey, this guide breaks down the exact foundations every beginner needs to grow confidently.👇 🔗 Read the full article on Medium: https://lnkd.in/dEwVaFx6 Python Syntax Made Simple: A Beginner’s Guide to Writing Clean Code ✨ Don’t feel overwhelmed. Start with the basics, the rest becomes easier. #Python #Coding #DataScience #Programming #AI #LearnPython #MVPCommunity #MicrosoftLearn #BeginnerFriendly
To view or add a comment, sign in
-
🚀 Continuing my coding journey in Python! Today, I practiced and explored various Sorting Algorithms 🔢 using Python 🐍 Sorting is one of the most fundamental concepts in programming — it helps organize data efficiently and lays the groundwork for many advanced algorithms. I explored different approaches like: 🧩 Bubble Sort – simple but less efficient ⚡ Insertion Sort – efficient for small or nearly sorted arrays 🌀 Merge Sort – divide and conquer strategy 🔺 Quick Sort – efficient and widely used in real-world applications 🕒 Time Complexities (Average Case): Bubble / Insertion Sort → O(n²) Merge / Quick Sort → O(n log n) 💾 Space Complexity: Merge Sort → O(n) Quick Sort → O(log n) 💻 Language Used: Python Understanding sorting improves both algorithmic thinking and performance optimization 💪 #Python #DSA #CodingJourney #ProblemSolving #SortingAlgorithms #LogicBuilding #AlgorithmDesign #ContinuousLearning
To view or add a comment, sign in
-
If you've just gotten into basic Python programming and are looking for a fun project to start with, I recommend checking out the scikit-learn library: https://lnkd.in/epZMk3qZ This library gives you access to some of the best resources for building machine learning models in Python, and is fairly straightforward to use Check out the AdaBoostClassifier and RandomForestClassifier for top performance!
To view or add a comment, sign in
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