Please turn JavaScript on
AskPython icon

AskPython

Want to know the latest news and articles posted on AskPython?

Then subscribe to their feed now! You can receive their updates by email, via mobile or on your personal news page on this website.

See what they recently published below.

Website title: Home - AskPython

Is this your feed? Claim it!

Publisher:  Unclaimed!
Message frequency:  3.17 / day

Message History

When you check whether a text value contains only letters, you need a clear rule for every character in it. Python’s isalpha() method returns True when a nonempty string consists entirely of Unicode letters. This article shows how to call isalpha() and how empty strings or combining marks affect its result. TL;DR: Check Letters with […]

Read full story
When you are adding last-in, first-out processing to a Python program, you need a container that keeps the newest item at the top. A list or deque can serve as a stack when you add and remove items at the same end. This article explains how to create a stack with a list and what […]

Read full story
Runtime messages help show what a Python program is doing as it runs. Python’s built-in logging module records those events by severity and routes them to destinations such as the console or a file. This article shows how to configure console and file output and use named loggers across modules. TL;DR: Python Logging Module Use […]

Read full story
Choosing a test for a Python string starts with deciding which characters it may contain. Python’s str.isalnum() returns True when a nonempty string contains only alphabetic or numeric characters. I’ll show how to test a complete string with str.isalnum() and choose a numeric-specific check when the input must represent a number. TL;DR: Choose the Check […]

Read full story
Inspecting a Python program at a chosen point starts with pausing execution there. Python’s breakpoint() function pauses at its call site and opens the configured debugger, which uses pdb by default. This article shows how to use pdb to check a value before continuing the program. TL;DR: Python breakpoint() Python’s breakpoint() pauses execution and opens […]

Read full story