Hi Reader,
After a long summer break, Tuesday Tips is back! 🎉
If you’re new around here, you can find all of my past Data Science tips at tuesday.tips. (Yes, that’s a real URL!)
Next week, I’m going to start including a “link of the week” at the top of each issue. But for today, let’s just get right to the tip!
By the way, did you travel anywhere this summer? I spent some wonderful time in Iceland! 🧊🌋🥾
If you have a coding question in 2023, you have two main options for getting help:
Either way, you have a much better chance of getting a helpful answer if you know how to write a great question!
My guiding principle when writing a coding question is to tell the reader everything they need to know and nothing else. This makes it easier for the reader to be helpful, and (at least in the case of humans) increases the likelihood that you will get an answer!
(1) Write a brief introduction: Give a quick summary of what you’re trying to accomplish and the problem you’re having.
(2) Provide a self-contained code example: Write code that can be copied, pasted, and run by the reader so that they can try it out on their own machine.
(3) Detail the expected results: Explain your expected output to the reader so that they can validate whether they have actually solved your problem.
(4) Add any important notes: Tell the reader anything they need to know about the problem that wouldn’t be obvious from the code example. This helps to steer readers away from solutions that may appear to work but don’t actually solve your problem.
(5) Write a title that summarizes the question: Whether you’re emailing a discussion group or posting on Stack Overflow, you’ll have a better chance of the right person reading your question if you write a concise and accurate title. (I suggest doing this last rather than first!)
Finally, here are some things you can optionally include:
Want to see how I applied this process to an actual coding question? Check out my in-depth post:
🔗 How to write a great Stack Overflow question.
If you enjoyed this week’s tip, please forward it to a friend! Takes only a few seconds, and it really helps me out! 🙌
See you next Tuesday!
- Kevin
P.S. Never have I felt so close to another soul…
Did someone awesome forward you this email? Sign up here to receive Data Science tips every week!
Join 25,000+ intelligent readers and receive AI tips every Tuesday!
Hi Reader, I just published a new YouTube video: How to use top AI models on a budget Description: Want to chat with the best AI models from OpenAI, Claude, and Google without paying $20/month? I'll show you how to use API keys with TypingMind to access top models for a fraction of the cost, demonstrate its killer feature of chatting with multiple models side-by-side, and explain when paying for a subscription is actually the smarter choice. Timestamps: 0:00 Introduction 0:37 Pay-per-token...
Hi Reader, On Friday, I announced my forthcoming book, Master Machine Learning with scikit-learn. In response, my Dad asked me: How does the subject of this book relate to Artificial Intelligence? In other words: What's the difference between AI and Machine Learning? Ponder that question for a minute, then keep reading to find out how I answered my Dad... 👇 AI vs Machine Learning Here's what I told my Dad: You can think of AI as a field dedicated to creating intelligent systems, and Machine...
Hi Reader, Yesterday, I posted this announcement on LinkedIn and Bluesky and X: Kevin Markham @justmarkham Dream unlocked: I'm publishing my first book! 🎉🎉🎉 It's called "Master Machine Learning with scikit-learn: A Practical Guide to Building Better Models with Python" Download the first 3 chapters right now: 👉 https://dataschool.kit.com/mlbook 👈 Thanks for your support 🙏 1:47 PM • Sep 11, 2025 1 Retweets 5 Likes Read 1 replies This has been a dream of mine for many years, and I'm so excited...