Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using python phase = Full distance = 228000 date = 31 eclipse = True #You may modify the lines of code above, but don't move

Using python

phase = "Full" distance = 228000 date = 31 eclipse = True

#You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign different values to the variables.

#There are (at least) three special types of full moons: # # - Super Moon: the full moon occurs when the moon is at its # closest approach to earth (less than 230,000km away). # - Blue Moon: the second full moon in a calendar month. In # other words, any full moon on the 29th, 30th, or 31st of # a month. # - Blood Moon: a lunar eclipse during a full moon. # #Write a program that will print out the type of moon -- #"Full Moon", "Super Moon", "Blue Moon", "Blood Moon", based #on the values of the variables above. Note that for the moon #to be any of these special kinds of moons, it must also be #full. # #Note, though, that multiple modifiers can be true at the same #time. We could have a Super Blue Moon, a Blue Blood Moon, or #even a Super Blue Blood Moon. # #Always print those modifiers in that order. If any of these #special modifiers is present, do not include the word "Full". #If none of them are present, but the moon is Full, then print #"Full Moon". If none of them are present at all, print "Moon".

#Add your code here!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions