t504.trans 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. Module(body=[Import(names=[alias(name='string',
  2. asname=None)]),
  3. Print(dest=None,
  4. values=[Attribute(value=Name(id='string',
  5. ctx=Load()),
  6. attr='ascii_lowercase',
  7. ctx=Load())],
  8. nl=True),
  9. Print(dest=None,
  10. values=[Attribute(value=Name(id='string',
  11. ctx=Load()),
  12. attr='ascii_uppercase',
  13. ctx=Load())],
  14. nl=True),
  15. Print(dest=None,
  16. values=[Attribute(value=Name(id='string',
  17. ctx=Load()),
  18. attr='ascii_letters',
  19. ctx=Load())],
  20. nl=True),
  21. Print(dest=None,
  22. values=[Attribute(value=Name(id='string',
  23. ctx=Load()),
  24. attr='lowercase',
  25. ctx=Load())],
  26. nl=True),
  27. Print(dest=None,
  28. values=[Attribute(value=Name(id='string',
  29. ctx=Load()),
  30. attr='uppercase',
  31. ctx=Load())],
  32. nl=True),
  33. Print(dest=None,
  34. values=[Attribute(value=Name(id='string',
  35. ctx=Load()),
  36. attr='letters',
  37. ctx=Load())],
  38. nl=True),
  39. Print(dest=None,
  40. values=[Attribute(value=Name(id='string',
  41. ctx=Load()),
  42. attr='digits',
  43. ctx=Load())],
  44. nl=True),
  45. Print(dest=None,
  46. values=[Attribute(value=Name(id='string',
  47. ctx=Load()),
  48. attr='hexdigits',
  49. ctx=Load())],
  50. nl=True),
  51. Print(dest=None,
  52. values=[Attribute(value=Name(id='string',
  53. ctx=Load()),
  54. attr='octdigits',
  55. ctx=Load())],
  56. nl=True),
  57. Print(dest=None,
  58. values=[Attribute(value=Name(id='string',
  59. ctx=Load()),
  60. attr='punctuation',
  61. ctx=Load())],
  62. nl=True),
  63. Print(dest=None,
  64. values=[Attribute(value=Name(id='string',
  65. ctx=Load()),
  66. attr='whitespace',
  67. ctx=Load())],
  68. nl=True),
  69. Print(dest=None,
  70. values=[Attribute(value=Name(id='string',
  71. ctx=Load()),
  72. attr='printable',
  73. ctx=Load())],
  74. nl=True),
  75. Assign(targets=[Name(id='s',
  76. ctx=Store())],
  77. value=Str(s="I frequently eat pizza; however, I don't particularly like it")),
  78. Print(dest=None,
  79. values=[Call(func=Attribute(value=Name(id='string',
  80. ctx=Load()),
  81. attr='split',
  82. ctx=Load()),
  83. args=[Name(id='s',
  84. ctx=Load())],
  85. keywords=[],
  86. starargs=None,
  87. kwargs=None)],
  88. nl=True),
  89. Print(dest=None,
  90. values=[Call(func=Attribute(value=Name(id='string',
  91. ctx=Load()),
  92. attr='split',
  93. ctx=Load()),
  94. args=[Name(id='s',
  95. ctx=Load()),
  96. Str(s=';')],
  97. keywords=[],
  98. starargs=None,
  99. kwargs=None)],
  100. nl=True),
  101. Assign(targets=[Name(id='s',
  102. ctx=Store())],
  103. value=Str(s='capitalize')),
  104. Print(dest=None,
  105. values=[Call(func=Attribute(value=Name(id='string',
  106. ctx=Load()),
  107. attr='capitalize',
  108. ctx=Load()),
  109. args=[Name(id='s',
  110. ctx=Load())],
  111. keywords=[],
  112. starargs=None,
  113. kwargs=None)],
  114. nl=True),
  115. Assign(targets=[Name(id='s',
  116. ctx=Store())],
  117. value=Str(s='Capitalize')),
  118. Print(dest=None,
  119. values=[Call(func=Attribute(value=Name(id='string',
  120. ctx=Load()),
  121. attr='capitalize',
  122. ctx=Load()),
  123. args=[Name(id='s',
  124. ctx=Load())],
  125. keywords=[],
  126. starargs=None,
  127. kwargs=None)],
  128. nl=True),
  129. Assign(targets=[Name(id='l',
  130. ctx=Store())],
  131. value=List(elts=[Str(s='this'),
  132. Str(s='will'),
  133. Str(s='become'),
  134. Str(s='a'),
  135. Str(s='sentence')],
  136. ctx=Load())),
  137. Print(dest=None,
  138. values=[Call(func=Attribute(value=Name(id='string',
  139. ctx=Load()),
  140. attr='join',
  141. ctx=Load()),
  142. args=[Name(id='l',
  143. ctx=Load())],
  144. keywords=[],
  145. starargs=None,
  146. kwargs=None)],
  147. nl=True),
  148. Print(dest=None,
  149. values=[Call(func=Attribute(value=Name(id='string',
  150. ctx=Load()),
  151. attr='join',
  152. ctx=Load()),
  153. args=[Name(id='l',
  154. ctx=Load()),
  155. Str(s='_')],
  156. keywords=[],
  157. starargs=None,
  158. kwargs=None)],
  159. nl=True),
  160. Assign(targets=[Name(id='s',
  161. ctx=Store())],
  162. value=Str(s="i frequently eat pizza; however, i don't particularly like it")),
  163. Print(dest=None,
  164. values=[Call(func=Attribute(value=Name(id='string',
  165. ctx=Load()),
  166. attr='capwords',
  167. ctx=Load()),
  168. args=[Name(id='s',
  169. ctx=Load())],
  170. keywords=[],
  171. starargs=None,
  172. kwargs=None)],
  173. nl=True),
  174. Print(dest=None,
  175. values=[Call(func=Attribute(value=Name(id='string',
  176. ctx=Load()),
  177. attr='capwords',
  178. ctx=Load()),
  179. args=[Name(id='s',
  180. ctx=Load()),
  181. Str(s='; ')],
  182. keywords=[],
  183. starargs=None,
  184. kwargs=None)],
  185. nl=True)])