In: Computer Science
in Python, make logic for birth colors for the months using arrays. Have recipient enter month and out comes the color
# Storing color names corresponding to each month of the year
birthColor = {
"January": "White",
"February": "Pink",
"March": "Yellow",
"April": "Orange",
"May": "Red",
"June": "Brown",
"July": "Blue",
"August": "Green",
"September": "Cyan",
"October": "Purple",
"November": "Violet",
"December": "Black"
}
# Taking user input and storing in month variable
month = input("Enter your birth month: ")
# Displaying birth color according to the month entered
print(birthColor[month])