Open in app
Adarsh Bulusu
46 Followers
About

Sign in

46 Followers
About
Open in app
Adarsh Bulusu

Adarsh Bulusu

Aug 10, 2020·1 min read

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

Adarsh Bulusu

Innovation Enthusiast.

A loop to do abs()? What for????
51
1

Angelo Hulshout 🇳🇱🇮🇹

More from Adarsh Bulusu

Innovation Enthusiast.

More From Medium

5 Ways to Make Your Python Code Faster

Adarsh Bulusu in The Startup

My Predictions for Technology Trends in 2021

Adarsh Bulusu in The Startup

3 Python Data Structures for Beginners

Adarsh Bulusu in Dev Genius

5 Tips to Improve Your Python Code’s Performance

Adarsh Bulusu in The Startup

Finding Potentially Habitable Exoplanets in the NASA Dataset using Python

Adarsh Bulusu in The Startup

How To Discover (Exo)planets For Dummies

Adarsh Bulusu

The GOP Has Split Into Three Factions

Caren White in Politically Speaking

8 Things Christians Say That Just Ain’t True

Jonathan Poletti in 𝘽𝙚𝙡𝙤𝙫𝙚𝙧

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store