t515.trans 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Module(body=[Import(names=[alias(name='math',
  2. asname=None)]),
  3. Print(dest=None,
  4. values=[Str(s='Booleans and Integers')],
  5. nl=True),
  6. Print(dest=None,
  7. values=[BinOp(left=Num(n=1),
  8. op=Add(),
  9. right=Name(id='True',
  10. ctx=Load()))],
  11. nl=True),
  12. Print(dest=None,
  13. values=[BinOp(left=Num(n=2),
  14. op=Sub(),
  15. right=Name(id='True',
  16. ctx=Load()))],
  17. nl=True),
  18. Print(dest=None,
  19. values=[BinOp(left=Num(n=3),
  20. op=Mult(),
  21. right=Name(id='False',
  22. ctx=Load()))],
  23. nl=True),
  24. Print(dest=None,
  25. values=[BinOp(left=Num(n=4),
  26. op=Div(),
  27. right=Name(id='True',
  28. ctx=Load()))],
  29. nl=True),
  30. Print(dest=None,
  31. values=[BinOp(left=Num(n=5),
  32. op=Mod(),
  33. right=Name(id='True',
  34. ctx=Load()))],
  35. nl=True),
  36. Print(dest=None,
  37. values=[BinOp(left=Num(n=6),
  38. op=Pow(),
  39. right=Name(id='False',
  40. ctx=Load()))],
  41. nl=True),
  42. Print(dest=None,
  43. values=[Str(s='Booleans and Floats')],
  44. nl=True),
  45. Print(dest=None,
  46. values=[BinOp(left=Num(n=1.5),
  47. op=Add(),
  48. right=Name(id='True',
  49. ctx=Load()))],
  50. nl=True),
  51. Print(dest=None,
  52. values=[BinOp(left=Num(n=2.5),
  53. op=Sub(),
  54. right=Name(id='True',
  55. ctx=Load()))],
  56. nl=True),
  57. Print(dest=None,
  58. values=[BinOp(left=Num(n=3.5),
  59. op=Mult(),
  60. right=Name(id='False',
  61. ctx=Load()))],
  62. nl=True),
  63. Print(dest=None,
  64. values=[BinOp(left=Num(n=4.5),
  65. op=Div(),
  66. right=Name(id='True',
  67. ctx=Load()))],
  68. nl=True),
  69. Print(dest=None,
  70. values=[BinOp(left=Num(n=5.5),
  71. op=Mod(),
  72. right=Name(id='True',
  73. ctx=Load()))],
  74. nl=True),
  75. Print(dest=None,
  76. values=[BinOp(left=Num(n=6.5),
  77. op=Pow(),
  78. right=Name(id='False',
  79. ctx=Load()))],
  80. nl=True),
  81. Print(dest=None,
  82. values=[Str(s='Booleans and Longs')],
  83. nl=True),
  84. Print(dest=None,
  85. values=[BinOp(left=Num(n=1),
  86. op=Add(),
  87. right=Name(id='True',
  88. ctx=Load()))],
  89. nl=True),
  90. Print(dest=None,
  91. values=[BinOp(left=Num(n=2),
  92. op=Sub(),
  93. right=Name(id='True',
  94. ctx=Load()))],
  95. nl=True),
  96. Print(dest=None,
  97. values=[BinOp(left=Num(n=3),
  98. op=Mult(),
  99. right=Name(id='False',
  100. ctx=Load()))],
  101. nl=True),
  102. Print(dest=None,
  103. values=[BinOp(left=Num(n=4),
  104. op=Div(),
  105. right=Name(id='True',
  106. ctx=Load()))],
  107. nl=True),
  108. Print(dest=None,
  109. values=[BinOp(left=Num(n=5),
  110. op=Mod(),
  111. right=Name(id='True',
  112. ctx=Load()))],
  113. nl=True),
  114. Print(dest=None,
  115. values=[BinOp(left=Num(n=6),
  116. op=Pow(),
  117. right=Name(id='False',
  118. ctx=Load()))],
  119. nl=True),
  120. Print(dest=None,
  121. values=[Str(s='Booleans with Math Module')],
  122. nl=True),
  123. Print(dest=None,
  124. values=[Call(func=Attribute(value=Name(id='math',
  125. ctx=Load()),
  126. attr='fabs',
  127. ctx=Load()),
  128. args=[Name(id='True',
  129. ctx=Load())],
  130. keywords=[],
  131. starargs=None,
  132. kwargs=None)],
  133. nl=True),
  134. Print(dest=None,
  135. values=[Call(func=Attribute(value=Name(id='math',
  136. ctx=Load()),
  137. attr='cos',
  138. ctx=Load()),
  139. args=[Name(id='True',
  140. ctx=Load())],
  141. keywords=[],
  142. starargs=None,
  143. kwargs=None)],
  144. nl=True)])