Why do you have a rainbow?

you might be familiar with the bible story of noahs ark the one who grabs two of every anomal sticks them in a boat for forty days and forty nightswhile the whole earth is flooded yardy yardy yardy well they say that its gods promise to never flood the world again.