Skip to content

Instantly share code, notes, and snippets.

@brennanbrown
Created October 21, 2020 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennanbrown/17f5758484153caab58e51a5a8b9f8b1 to your computer and use it in GitHub Desktop.
Save brennanbrown/17f5758484153caab58e51a5a8b9f8b1 to your computer and use it in GitHub Desktop.
A demonstration of writing prettier arrays in Python.
major_lst = []
symbols = ['.',',','!','@','#','$','%','&','*','^','-',
'|','[',']','{','}','(',')','_','+','=',';',
':',"'",'"','?','/','>','<','`','~','\\']
uppercase = ['A','B','C','D','E','F','G','H','I','J','K',
'L','M','N','O','P','Q','R','S','T','U','V',
'W','X','Y','Z']
lowercase = ['a','b','c','d','e','f','g','h','i','j','k',
'l','m','n','o','p','q','r','s','t','u','v',
'w','x','y','z',' ']
numbers = [0,1,2,3,4,5,6,7,8,9]
pri_list = symbols + uppercase + lowercase + numbers
@Siddhant-Kundargi
Copy link

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment