11 lines
175 B
Mojo
11 lines
175 B
Mojo
struct Battery:
|
|
var charge: Int
|
|
|
|
def __init__(out self, charge: Int):
|
|
self.charge = charge
|
|
|
|
|
|
def main():
|
|
var b = Battery(15)
|
|
print("low:", b.is_low())
|