hashtags(post) returning every hashtag in a social post — a # followed by letters/digits/underscores, at least one character — lowercased and without the #. re.findall with one capturing group returns just the group.hashtags('Learning #Python and #SQL_2026! #')['python', 'sql_2026']
The bare # matches nothing; tags are lowercased.
Pattern: #(\w+).
findall returns the captured group directly.