generate functionMon, 28 Nov 2022
command to import all constants from string module and print them
# IMPORTANT: the command should work only if the module is not imported yet def print_constants(): import string for i in dir(string): if i.isupper(): print(i)
Python
Generate More