mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
6 lines
151 B
Plaintext
6 lines
151 B
Plaintext
class Complex:
|
|
def __init__(self, realpart, imagpart):
|
|
self.r = realpart
|
|
self.i = imagpart
|
|
x = Complex(3.0, -4.5)
|
|
assert x.r == 3.0 |