Every so often, I’ve asked readers of my free, weekly “Better developers” newsletter to send me their Python problems. And every so often, I get a chance to answer their questions, going through their Python problems and trying to solve them. I’ve recently recorded and uploaded two videos with solutions to their problems, which I’m…
Bottom line: str.isdigit returns True only for the digits 0-9 (plus superscripts like ‘\u00b2’), while str.isnumeric also returns True for numeric characters from other writing systems, such as the Chinese ‘\u4e00\u4e8c\u4e09’. A third method, str.isdecimal, is the strictest of the three. If you plan to pass the string to int(), use isdigit \u2014 int(‘\u4e8c’) raises…
One of the first things that anyone learns in Python is (of course) how to print the string, “Hello, world.” As you would expect, the code is straightforward and simple: print(‘Hello, world’) And indeed, Python’s “print” function is so easy and straightforward to use that we barely give it any thought. We assume that people…
If you want to join this month’s cohort of Weekly Python Exercise, you’d better act fast: Registration ends today! If you feel stuck after having taken a Python course or read a book, and don’t know how to improve, If you want to get real-world practice problems that’ll help you with your career, If you…
If you want to improve your understanding of Python, then you’re going to have to practice. And as hundreds of developers from around the world have already learned, there’s no better way to practice than Weekly Python Exercise. If you’re relatively new to Python, this our upcoming cohort is for you! Weekly Python Exercise: Newbie…
Python is one of the hottest languages out there. People can’t get enough Python, and companies can’t get enough Python people. This means that learning Python is a great move for your career. (Also, it’s just plain ol’ fun to use.) If you’ve always wanted to get started with Python, or if you’ve been using…
Good news for developers in Israel — I’ll be offering two open-enrollment courses in Tel Aviv next month (January): Advanced Python: If you’ve already been using Python for at least six months, and want to level up your knowledge of this hot language, then this course is for you. I’ll talk about advanced data structures,…
Are you new to Python, and looking for relatively easy exercises to reinforce what you’ve learned? Do you use Python every day, but rely on Stack Overflow to answer questions like, “Which parentheses should I use here,” or, “What’s the difference between a list and dict?” Are you an experienced developer in other languages, and…
Today (Monday) is the last day to benefit from my weekend sale, with 40% off of my books and courses! Just enter the coupon code “BF2018” for any product , and take 40% off. This offer includes my new “Intro Python: Fundamentals” course, containing the 1st day of the 4-day training I give to experienced…
Yup — just like everyone else, I’m having a Black Friday sale on all of my online books and courses. Just this weekend, you can use the coupon code BF2018 to improve your Python skills: Object-Oriented Python Understanding and Mastering Git Comprehending Comprehensions Practice Makes Python, complete edition Practice Makes Python, just the book Practice…