WAP to store 25 numbers in a Single dimension array then display numbers in one column and even or odd Message in another column with appropriate heading as follows:
Number Message
10 Even
12 Even
101 Odd
Answers
Answered by
6
Answer:
in the attachment
PLEASE MARK IT AS BRAINLIEST
Attachments:
Answered by
19
Code: [in Python language]
Explanation:
To create an array, we require the package. It is imported, along with the package which will be required later on. We then create a list, to store the numbers that are going to be entered by the user through a loop. As the numbers are being entered, they're being added to the list using the method. Once that's done, we create an array out of the list obtained, as per the question. After that, we create a dictionary to store the kind, i.e., whether odd/even into it with the numbers as the keys, also through a
Similar questions