lst=["koala", "cat", "fox", "panda", "chipmunk", "sloth", "penguin", "dolphin"]
#Type your answer here.
for item in lst:
print(item)
koala cat fox panda chipmunk sloth penguin dolphin
lst=["Sam", "Lisa", "Micha", "Dave", "Wyatt", "Emma", "Sage"]
#Type your code here.
for item in lst:
print("Hello!, {}".format(item))
Hello!, Sam Hello!, Lisa Hello!, Micha Hello!, Dave Hello!, Wyatt Hello!, Emma Hello!, Sage
str="Antarctica"
#Type your code here.
char = len(str)
for item in range(0, char):
print(str[item])
A n t a r c t i c a
str="Civilization"
c=0
for i in str:
#sourcecode will go below
c+=1
#sourcecode will go above
print(c)
12
lst1=["Phil", "Oz", "Seuss", "Dre"]
lst2=[]
counter = 0
#Type your answer here.
for item in lst1:
lst2.append("Dr. {}".format(item))
print(lst1)
print(lst2)
['Phil', 'Oz', 'Seuss', 'Dre'] ['Dr. Phil', 'Dr. Oz', 'Dr. Seuss', 'Dr. Dre']
lst1=[3, 7, 6, 8, 9, 11, 15, 25]
lst2=[]
#Type your answer here.
for num in lst1:
print("{} squared = {}".format(num, num ** 2))
3 squared = 9 7 squared = 49 6 squared = 36 8 squared = 64 9 squared = 81 11 squared = 121 15 squared = 225 25 squared = 625
lst1=[111, 32, -9, -45, -17, 9, 85, -10]
lst2=[]
#Type your answer here.
for item in lst1:
if item > 0:
lst2.append(item)
print(lst2)
[111, 32, 9, 85]