3 ms·Unless you are programming in Python, it should be possible in one line.by layer8 3y agoUnless you are programming in Python, it should be possible in one line.