Get first n elements in list python July 8, 2019 16 32 64 128 Sum first n elements in list python How to print first digit of a number in python For loop python list List py