"For Loop" Flash Card #1
What is an Indentation Error? A Indentation Error is when you need to indent the print() function under our list.
"For Loop" Flash Card #2
After running the code above, I received an ERROR! What would solve this error? And what type of ERROR was it I received? What would solve this error? Indenting line 4
What type of error? Indentation Error
"For Loop" Flash Card #3
Go vols! What would be code to get a "For" loop using the Range function? tennessee = "2024 NCAA Baseball CHAMPS!"
for tennessee in range(7):
print ("2024 NCAA Baseball CHAMPS!")
"While Loop" Flash Card #1
A "While" Loop function will perform the instructions if....... All Conditions are TRUE
"While Loop" Flash Card #2
Oh no! Only 1 of my 2 items on my list were listed. Can you spot what went wrong? On the 8th line, the index is (+= 2) it needs to be 1. This change would result in the following output:
I love tntech because ofCookeville
I love tntech because ofGolden Eagles
"While Loop" Flash Card #3
Check out this list loop. Personally, I do not like lakes or fireworks. Can you rewrite this code to leave them from the final list? summer = ["Pools","Lakes","Sunshine", "Fireworks"]
length = len(summer)
index = 0
while index < length:
print( "I love summer because of" + summer[index])
index += 2