Answers for "how to print certain # of things of a list python"

2

print specific list item python

lis_t = [1, 4, 5]
print(lis_t[2]) #will print 5
Posted by: Guest on October-13-2020
3

print list in one line python

# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)
Posted by: Guest on May-14-2020

Code answers related to "how to print certain # of things of a list python"

Python Answers by Framework

Browse Popular Code Answers by Language