Question: I'm not sure why the project crashes everytime when I use the elif statement. I thought I use it correctly but when I tried run

I'm not sure why the project crashes everytime when I use the elif statement. I thought I use it correctly but when I tried run the module it always says invalid syntax. HELP
I'm not sure why the project crashes everytime when I use the

9 print ( Welcome!'). 10 print ('Select a gize for your star to begin. ') 11 print (7 A. less than 0.3 solar unit 12 B. 0.3 solar unit to 8 solar unit 13 C. greater than 8 solar unit.") 14 while True: myChoice input (>>)) if myChoice = A ' or myChoice =='a': print (Stars with a mass value less than 0.3 solar tunit are not Red Giants.") print ( Do youl want to restart? Yes or No') yn = input (>;) if yn= Yn continue elif yn = 'No': print ('Bye...') break: (1) 1 see? elif myChoice = ' B ' or myChoice =b : it myChoice = ' C ' or myChoice = ' c '? elsez print (' Invalid input. Please choose from options above,' )

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!