« * K @lernerpython.com

Reuven M. Lerner @lernerpython.com

2026-11-14 16:15 UTC

Tired of invoking "strip" when getting user input in #Python? Use the "Prompt.ask" method in Rich on PyPI: from rich.prompt import Prompt name = Prompt.ask('Enter your name') It adds a colon and strips the user's input -- convenient and useful!

1 picture (not shown on this phone)

2 likes, 0 reposts, 0 replies

3 Next post4 More from @lernerpython.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup