Advertisement
Guest User

Untitled

a guest
Dec 9th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.91 KB | None | 0 0
  1. # ASCII glyphs
  2.  
  3. a = """
  4. .....#.....
  5. ....###....
  6. ...#####...
  7. ..### ###..
  8. .###   ###.
  9. ###########
  10. ###     ###
  11. ###     ###
  12. ###     ###
  13. """
  14.  
  15. b = """
  16. ########..
  17. #########.
  18. ###    ##.
  19. #########.
  20. #########.
  21. ###    ##.
  22. ###    ###
  23. ##########
  24. ##########
  25. """
  26.  
  27. c = """
  28. ...#########
  29. ..#########.
  30. .####.......
  31. ####........
  32. ###.........
  33. ###.........
  34. .####.......
  35. ..#########.
  36. ...#########
  37. """
  38.  
  39.  
  40. # Define what characters there are
  41. letterrange = list("abc")
  42.  
  43. letters = {}
  44.  
  45. # (So don't have to manually put in a dictionary)
  46. # Dictionary where 'key' corresponds to the letter and 'value' the variable
  47. for i in letterrange:
  48.     letters[i] = locals()[i]
  49.     letters.update({i : letters[i].split('\n')})
  50.  
  51. # The query that's being converted to ASCII glyphs
  52. query = list("bac") # not used yet
  53.  
  54. scanlines = 11
  55.  
  56. for i in range(scanlines):
  57.     print ("".join("%s" % v[i] for v in letters.values()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement