9 lines
198 B
Mojo
Generated
9 lines
198 B
Mojo
Generated
def validate_velocity(n: Int) -> Int:
|
|
if n <= 0:
|
|
pass # TODO: reject the invalid velocity by raising an Error
|
|
return n
|
|
|
|
|
|
def main():
|
|
print("Validated:", validate_velocity(256))
|