Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started