dir()
[‘annotations’, ‘builtins’, ‘doc’, ‘loader’, ‘name’, ‘pack
age’, ‘spec’, ‘a’, ‘adj’, ‘b’, ‘cos’, ‘fruits’, ‘math’, ‘sin’, ‘sqrt’, ‘th
isdict’, ‘x’, ‘y’]
dir a
File “”, line 1
dir a
^
SyntaxError: invalid syntax
dir(‘a’)
[‘add’, ‘class’, ‘contains’, ‘delattr’, ‘dir’, ‘doc’, ‘_
eq_’, ‘format’, ‘ge’, ‘getattribute’, ‘getitem’, ‘__getnewargs
‘, ‘gt’, ‘hash’, ‘init’, ‘init_subclass’, ‘iter’, ‘le’
, ‘len’, ‘lt’, ‘mod’, ‘mul’, ‘ne’, ‘new’, ‘reduce’,
‘reduce_ex’, ‘repr’, ‘rmod’, ‘rmul’, ‘setattr’, ‘sizeof’
, ‘str’, ‘subclasshook’, ‘capitalize’, ‘casefold’, ‘center’, ‘count’, ‘e
ncode’, ‘endswith’, ‘expandtabs’, ‘find’, ‘format’, ‘format_map’, ‘index’, ‘isal
num’, ‘isalpha’, ‘isascii’, ‘isdecimal’, ‘isdigit’, ‘isidentifier’, ‘islower’, ’
isnumeric’, ‘isprintable’, ‘isspace’, ‘istitle’, ‘isupper’, ‘join’, ‘ljust’, ‘lo
wer’, ‘lstrip’, ‘maketrans’, ‘partition’, ‘replace’, ‘rfind’, ‘rindex’, ‘rjust’,
‘rpartition’, ‘rsplit’, ‘rstrip’, ‘split’, ‘splitlines’, ‘startswith’, ‘strip’,
‘swapcase’, ‘title’, ‘translate’, ‘upper’, ‘zfill’]
dir(‘fruits’)
[‘add’, ‘class’, ‘contains’, ‘delattr’, ‘dir’, ‘doc’, ’
eq’, ‘format’, ‘ge’, ‘getattribute’, ‘getitem’, ‘__getnewargs
__’, ‘gt’, ‘hash’, ‘init’, ‘init_subclass’, ‘iter’, ‘le’
, ‘len’, ‘lt’, ‘mod’, ‘mul’, ‘ne’, ‘new’, ‘reduce’,
‘reduce_ex’, ‘repr’, ‘rmod’, ‘rmul’, ‘setattr’, ‘sizeof’
, ‘str’, ‘subclasshook’, ‘capitalize’, ‘casefold’, ‘center’, ‘count’, ‘e
ncode’, ‘endswith’, ‘expandtabs’, ‘find’, ‘format’, ‘format_map’, ‘index’, ‘isal
num’, ‘isalpha’, ‘isascii’, ‘isdecimal’, ‘isdigit’, ‘isidentifier’, ‘islower’, ’
isnumeric’, ‘isprintable’, ‘isspace’, ‘istitle’, ‘isupper’, ‘join’, ‘ljust’, ‘lo
wer’, ‘lstrip’, ‘maketrans’, ‘partition’, ‘replace’, ‘rfind’, ‘rindex’, ‘rjust’,
‘rpartition’, ‘rsplit’, ‘rstrip’, ‘split’, ‘splitlines’, ‘startswith’, ‘strip’,
‘swapcase’, ‘title’, ‘translate’, ‘upper’, ‘zfill’]