Question: For the line with red highlight, I don't know what I did wrong with the code. I want to compare user's input with the decimal

For the line with red highlight, I don't know what I did wrong with the code. I want to compare user's input with the decimal value but apparently python doesn't want to accept my code...
 For the line with red highlight, I don't know what I

7 fthis is a search ensine for astromomers to nit flisens can imput the mass of a star. then the print ( Welcome!' ) print ('Please input a mass value, Note: the mass value MuST be in golar unit'") while True: massinput = input (>:) Hcheck if user type in a number if Decimal (massInput) = False: print ('You must input a number! Please (ry again. ") else: if Deciaal (massInput) = Decimal (0.3) : print ('This is a not a red giant. Please input a rase value greater than 0.3 ) El if Decimal (mass Input) > Decimal (0.3) and Decimal (massInput) (8,0) : print ( Red Giants with sthal1 mass ( 8 solar mait) will prodice. (uPlanetary luNebulae, ') elif Decinal (massinput) > Decinal (8): print ('Red Ciants with seall friss (C 8 solar mass) will produce huType lutt (uSupernoyae:')

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!