edit the given answer to one of the problems.
The following, given solution outputs the first element ('10') twice, which could be incorrect. The last and second-last lines of code should be swapped?
PlayListRatings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
i = 0
Rating = PlayListRatings[0]
while(i < len(PlayListRatings) and Rating >= 6):
print(Rating)
Rating = PlayListRatings[i]
i = i + 1
1
vote
