123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- Module(body=[Import(names=[alias(name='math',
- asname=None)]),
- Print(dest=None,
- values=[Str(s='Booleans and Integers')],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=1),
- op=Add(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=2),
- op=Sub(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=3),
- op=Mult(),
- right=Name(id='False',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=4),
- op=Div(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=5),
- op=Mod(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=6),
- op=Pow(),
- right=Name(id='False',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[Str(s='Booleans and Floats')],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=1.5),
- op=Add(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=2.5),
- op=Sub(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=3.5),
- op=Mult(),
- right=Name(id='False',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=4.5),
- op=Div(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=5.5),
- op=Mod(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=6.5),
- op=Pow(),
- right=Name(id='False',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[Str(s='Booleans and Longs')],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=1),
- op=Add(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=2),
- op=Sub(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=3),
- op=Mult(),
- right=Name(id='False',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=4),
- op=Div(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=5),
- op=Mod(),
- right=Name(id='True',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[BinOp(left=Num(n=6),
- op=Pow(),
- right=Name(id='False',
- ctx=Load()))],
- nl=True),
- Print(dest=None,
- values=[Str(s='Booleans with Math Module')],
- nl=True),
- Print(dest=None,
- values=[Call(func=Attribute(value=Name(id='math',
- ctx=Load()),
- attr='fabs',
- ctx=Load()),
- args=[Name(id='True',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Attribute(value=Name(id='math',
- ctx=Load()),
- attr='cos',
- ctx=Load()),
- args=[Name(id='True',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|