Alguém poderia fazer a List Comprehension do seguinte código, por favor? Não estou conseguindo!!
def linear(b,a,x):
lista=[]
j=0
for i in x:
y=b*j+a
lista.append(j)
lista.append(y)
j=j+1
return lista
def retas(b,a,x):
y=[]
y=deque(map(linear,b,a,x))
print(y)
Question
Ruan Xavier Santos 0
Alguém poderia fazer a List Comprehension do seguinte código, por favor? Não estou conseguindo!!
def linear(b,a,x):
lista=[]
j=0
for i in x:
y=b*j+a
lista.append(j)
lista.append(y)
j=j+1
return lista
def retas(b,a,x):
y=[]
y=deque(map(linear,b,a,x))
print(y)
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.