PW Akshay


generate functionMon, 28 Nov 2022

from string import ascii_letters, digits, punctuation #make this program to get this output: bcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~

import string def get_all_chars(): all_chars = '' for char1 in string.ascii_letters: all_chars += char1 for char2 in string.digits: all_chars += char2 for char3 in string.punctuation: all_chars += char3 return all_chars print(get_all_chars())

Questions about programming?Chat with your personal AI assistant