rustpython 0.1.0

A python interpreter written in rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
assert 5.666666666666667 == 17 / 3  # classic division returns a float

assert 5 == 17 // 3  # floor division discards the fractional part

assert 2 == 17 % 3  # the % operator returns the remainder of the division

assert 17 == 5 * 3 + 2  # result * divisor + remainder

print(17 / 3)  # classic division returns a float

print(17 // 3)  # floor division discards the fractional part

print(17 % 3)  # the % operator returns the remainder of the division

print(5 * 3 + 2)  # result * divisor + remainder