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

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
Get step-by-step solutions from verified subject matter experts
