You are viewing a single comment's thread. Return to all comments →
import numpy as np
def zero_one(x): list_zero_one = ['zeros','ones'] for i in list_zero_one: func = getattr(np, i) print(func(tuple(x), int))
inputs = list(map(int, input().split())) zero_one(inputs)
Seems like cookies are disabled on this browser, please enable them to open this website
Zeros and Ones
You are viewing a single comment's thread. Return to all comments →
import numpy as np
def zero_one(x): list_zero_one = ['zeros','ones'] for i in list_zero_one: func = getattr(np, i) print(func(tuple(x), int))
inputs = list(map(int, input().split())) zero_one(inputs)