How to Use help() Function in PythonPython Basics


The help() function checks the details of a function or module.

Example

#!/usr/bin/python3
# -*- coding: UTF-8 -*-

help(range)

help(set)

help(list)

Syntax

help([object])

Parameters

Name Description
object Function name or module name.

Return Value

It returns the details of a module or function.

© 2024 Cheerlearn.com, all rights reserved. Privacy Policy | Contact Us