It was a small part of a project I was working on when I was beginning Python. I would write something like this instead of mapping abs().
for x in mylist:
>> elif x >= 0:
>>>> alist.append(x):
>> else:
>>>>alist.append(-x)
mylist = alist
It was a small part of a project I was working on when I was beginning Python. I would write something like this instead of mapping abs().
for x in mylist:
>> elif x >= 0:
>>>> alist.append(x):
>> else:
>>>>alist.append(-x)
mylist = alist
Innovation Enthusiast.