scores = [70, 90, 80, 65, 85, 77]
# filtered_scores = scores.filter do |score|
# score >= 80
# end
# p filtered_scores
scores.filter! do |score|
score >= 80
end
p scores
scores.filter! do |score|
score >= 80
end
p scores
scores = [70, 90, 80, 65, 85, 77]
# filtered_scores = scores.filter do |score|
# score >= 80
# end
# p filtered_scores
scores.filter! do |score|
score >= 80
end
p scores
scores.filter! do |score|
score >= 80
end
p scores