Friday brings #Python Today I have something special for you. If you’ve ever used generators in Python, you’re probably familiar with the `yield` keyword. But what about `yield from`? Take a look at the image: it lets the current generator delegate control to another generator until it’s finished.
Ivan Karabadzhak’s Post
More Relevant Posts
-
Hot take: Python is fast enough for most things. For the other things? 🦀 Rust. Just published a guide on using PyO3 v0.28 + maturin to drop Rust into your Python stack — the same approach Polars, Ruff, and Pydantic v2 use. One function. Native speed. Still pip install-able. 👉 https://lnkd.in/g794MZxa #Rust #Python #PyO3 #Engineering #Performance
To view or add a comment, sign in
-
-
🤖 I use claude code predominantly on Python and Rust at the moment. My feeling is that it works significantly better on Rust than on Python code bases. Do others observe the same? I don't think its just the strong typing. Maybe also the compiler feedback?! Not sure. What do you think? #Python #Rustlang #LLMS #Claude
To view or add a comment, sign in
-
Day 72 of filter() function: Today I explored Python’s powerful filter() function. It helps extract elements from lists based on conditions—like filtering even numbers or names containing specific letters. This concise approach makes code cleaner and more efficient. Github link: https://lnkd.in/gFtmaYZS #Python #CodingChallenge #100DaysOfCode #LearningInPublic #GitHub #CodeNewbie
To view or add a comment, sign in
-
-
Learn how to access, unpack, loop, join, and more with tuples in Python — a quick guide to mastering this essential data type! 🎥 Watch here: https://lnkd.in/dpYuJNUp #Python #Coding #DataStructures #ProgrammingTips
Python Tutorial Part 4 | Tuples: Access, Update, Unpack , Loop, Join & More
https://www.youtube.com/
To view or add a comment, sign in
-
Day 4 – Python Functions Key point: How to create & use functions Mini snippet: Python def greet(name): return f"Hello, {name}!" print(greet("Bala"))
To view or add a comment, sign in
-
Day 71 – Map Function in Python: Day 71 focused on learning the map() function in Python, which is used to apply a function to every item in an iterable like a list. I practiced using map() along with lambda functions to square numbers in a list and to create greeting messages for a list of names. This exercise helped me understand how map() can process data efficiently and reduce the need for traditional loops, making Python code more concise and functional. GitHub Code: https://lnkd.in/gxBQmHAs #Day71 #100DaysOfCode #Python #MapFunction #Lambda #LearningPython #CodingJourney #DailyCoding #Consistency
To view or add a comment, sign in
-
-
🤜 Python Challenge #7 – Answer Revealed! Python slicing can also work in reverse using a negative step. In s[::-2]: 👉 It starts from the end of the string 👉 Moves backward 👉 Picks every 2nd character For s = "Python": n -> h -> y Output: nhy #python #pythonchallenge #codechallenge #code #pythonslicing #string #challenge
To view or add a comment, sign in
-
-
Effortless string iteration for Python beginners is now possible Discover the most efficient way to iterate over strings in Python Get to know the different techniques to manipulate characters Python Strings Read the full article 👉 https://lnkd.in/dnaxNEu7 #EnterpriseApplication #SoftwareDevelopment #DataTypes #TechLab Code. Learn. Build. — TechLab by Neeraj
To view or add a comment, sign in
-
And here is the fix. In Python, range(start, end) includes the starting number but stops right before the ending number. So if we want to print 1 to 5, the correct code is range(1, 6). #PythonCoding #KidsWhoCode #DebuggingSkills #CodingEducation #FutureProgrammers
To view or add a comment, sign in
-
-
Day 69 – Try, Except, Finally Example in Python: Day 69 focused on practicing a Try–Except–Finally example in Python using user input. In this program, I asked the user to enter a number and attempted to divide 100 by that number. I handled possible errors such as invalid input using ValueError and division by zero using ZeroDivisionError. I also used a finally block to ensure a message is displayed when the program execution completes. This exercise helped me understand how to safely handle user input errors and make Python programs more reliable. GitHub Code: https://lnkd.in/g__F-gup #Day69 #100DaysOfCode #Python #ExceptionHandling #TryExceptFinally #LearningPython #CodingJourney #DailyCoding #Consistency
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