animals = ['cat','dog','fish'] print [animals] print (animals[0]): for animal in animals: print(animal) for id,animal in enumerate(animals): print(id) print(animal) animals.append('rabbit') print (animals) #print (animals.upper()) for animal in animals: print(animal.upper()) print ("You have " + str(len(animals))+" animals in your list.") What will print in the line #print(animals.upper())in code block A?
animals = ['cat','dog','fish'] print (animals) print (animals[0]) for animal in animals: print(animal) for id,animal in enumerate(animals): print(id) print(animal) animals.append('rabbit') print (animals) #print (animals.upper) for animal in animals: print(animal.upper()) print ("You have " + str(len(animals))+" animals in your list.")
Code print in the line #print(animals.upper())in code block A is
CAT
DOG
FISH
RABBIT
Get Answers For Free
Most questions answered within 1 hours.