Computer Science, asked by Anonymous, 7 months ago

Take 6 input from the user and check whether the number entered is even or odd. Create a list which store 'even' or 'odd' based on the number entered in Python​

Answers

Answered by vinko111
2

Answer:

Hope this satisfies you....

Explanation:

usr_inputs = [ ] #empty list for storing the inputs

even_or_odd = [ ] #empty list for storing the status of those nos.

for _ in range(6):

     user_input = int(input('enter your number'))

     usr_inputs.append(user_input) #this adds the user's inputs to usr_inputs

for i in (usr_inputs):

     if i % 2 == 0:

        even_or_odd.append('Even')

     else:

        even_or_odd.append('Odd')

print(even_or_odd)

here is an image of the code for assistance:

PLZ MARK BRAINLIEST!

Attachments:
Similar questions