Write a Python program to list the special variables used in the language.

Write a Python program to list the special variables used in the language.

1
2
3
4
s_var_names = sorted((set(globals().keys()) | set(__builtins__.__dict__.keys())) - set('_ names i'.split()))
print()
print( '\n'.join(' '.join(s_var_names[i:i+8]) for i in range(0, len(s_var_names), 8)) )
print()

Final output

Leave a Comment