Get the latest tech news

The features of Python's help() function


Python's help() function accepts more than functions, modules, and objects. The help() function can lookup help for symbols, keywords, and topics!

But this also means we can't pass a string to help and expect to see help on the str type: Keywords are words that can't be used as valid Python variable names. If you type help from the help utility you can see the initial prompt again, which notes that modules, keywords, symbols, and topics are the top-level categories that you can use to discover what possible strings help will accept:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Features

Features

Photo of Function

Function

Photo of python

python

Related news:

News photo

Infinite Realms turns fantasy books into living, breathing game worlds with help of AI

News photo

The MagicX Zero 40 handheld features a vertical display for DS emulation

News photo

Converting CO2 Into Fuel With the Help of Battery Waste | A nanocatalyst based on spent batteries and aluminium foil residues can turn CO2 into valuable methane.