items = ["Apple", "Banana", "Cherry", "Date", "Eggfruit", "Fig"]
for word in items:
print(word[:3])
#This is for getting the first three characters
items = ["Apple", "Banana", "Cherry", "Date", "Eggfruit", "Fig"]
out = map(lambda x:x.upper(), items)
output = list(out)
print(output)
#This is to get everything in capitals
The first code is for printing the first three characters of each item in the list and the second part prints all the items in capitals-i am not sure what code i need to print the first three characters of each item in capitals