Question: def main ( ) : reply = input ( What color would you like? ) if elif color = elif : else: print ( I

def main():
reply= input( "What color would you like?" )
if
elif
color=
elif
:
else:
print( "I don't know that color. Please pick again." )
Please fill in the blanks and complete the codes by
following the chart above.
Write a program to find how long it takes to have a
million dollar salary, if you start by making $20K and
get a 7 percent raise each year?
Initialize salary to 20K.
Initialize year to 0.
Initialize percent annual raise to 7.
While salary 1m, the program calculates the new
salary (salary = salary + raise amount) and accumulates
the number of years (year = year +1).
Finally, print out "Salary exceeded a million dollars after
fill_in_number_of_years years".
 def main(): reply= input( "What color would you like?" ) if

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!