Python Simple Return

Python code posted by uknown
created at 06 Aug 06:34

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import numpy as np


x = [3, 2, 1]


def simple_return(x):
    x = np.array(x).astype(np.float32)
    return x


if __name__ == "__main__":
    simple_return(x)
    print(f"x is {x}")
196 Bytes in 2 ms with coderay