PW Akshay

Generation

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)

Questions about programming?Chat with your personal AI assistant