This test will have no effect on your grade. Don’t even write your name on it.
for
loop to
print
the integers (whole numbers) from 1 to 10 inclusive.
Print each integer on a separate line.
list
of four prices,
originalPrices = [ 5.95, 1.99, 0.99, 9.95 ]use a list comprehesion to create a new list named
newPrices
.
The new list well contain four prices, just like the original list.
Each price in the new list will
be 106% of the corresponding price in the original list.
In other words,
the cost of everything has just gone up six percent.
originalPrices
,
write a
generator
function
containing a
yield
statement that will yield four new prices.
Each new price will be 106% of the corresponding price in the original list.