Answer:
months_info = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']
date = input('Enter a date using the mm/dd/yyyy format ')
m, d, y = date.split('/')
m = int(m) - 1
name_of_month = months_info[m]
print('{} {}, {}'.format(name_of_month, d, y))
Explanation:
- Create a list of all months and store them in the months_info variable.
- Get the date as an input from user and then split the date.
- Finally display the date by following the specific layout using the built-in format method.
The code segment makes use of conditional statements.
Conditional statements in programming are used to make decisions
The code segment in C++ is as follows
if (score > 90) {
grade = 'A';
}
else if (score >= 80 && score < =90) {
grade = 'B';
}
else {
grade = 'C';
}
The above code segments take the score, make comparison, and then determine the appropriate letter grade.
Read more about code segments at:
brainly.com/question/20475581
<h2>Alignment section helps to wrap text in Excel</h2>
Explanation:
- Alignment section available in Home ribbon has many option such as aligning the text to left, right, center.
- It also has options to rotate the selected text diagonally, vertically, etc.
- The user can also merge two or more cells and do necessary alignment
- When it comes to wrapping the text, texts are wrapped when the count of letters exceeds the width of the cell. Excel has "Wrap text" option to wrap the word to the next line.