1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Masja [62]
3 years ago
5

Lab: even/odd values in an array

Computers and Technology
1 answer:
Crank3 years ago
3 0

def input_values(new_list):

   new_list = []

   n = int(input('Enter number of values: '))

   for i in range(n):

       new_list.append(int(input('Enter values: ')))

   def is_list_even(new_list):

       for i in range(len(new_list)):

           if new_list[i]%2!=0:

               return False

           return True

   def is_list_odd(new_list):

       for i in range(len(new_list)):

           if new_list[i]%2==0:

               return False

           return True

   num=input_values()

   if is_list_even(num)==True:

       print('all even')

   elif is_list_odd(num)==True:

       print('all odd')

   else:

       print('not even or odd')

You might be interested in
Mary and Billy are moving away to college and both know in their hearts that they need to end their relationship. They move away
ivanzaharov [21]

In the case of Mary and Billy, the above is called Negotiated farewell.

<h3>What is Negotiated farewell?</h3>

In the case of  Negotiated Farewell, one can say that couples are knonw to jointly create the story of the end to what we say their marriage.

Note that Negotiated Farewell is one that is made for emotionally immature or any kind of combative people. hence, In the case of Mary and Billy, the above is called Negotiated farewell.

Learn more  about relationship from

brainly.com/question/10286547

#SPJ1

4 0
2 years ago
Select the functions in the Insert tab in PowerPoint.
Alja [10]

Answer:

this is a screenshot of notes i took. this is not an infected file :) i hope this screenshot helps :D

3 0
3 years ago
What are the OSHA construction standards also called ?
Zarrin [17]
Part 1926 & Part 1910


hope this helps 

5 0
3 years ago
According to the reading on the course web pages, the earliest usage of cooking began around _____ million years ago.
fenix001 [56]

Answer:

According to the reading on the course web pages, the earliest usage of clothes began around ____ million years ago. 3.4 1.5 0.8 0.5 1.7 2. According to the reading on the course web pages, lime mortar was probably discovered from annealing: Charcoal Obsidian Flint Glass 3.

Explanation:

6 0
3 years ago
To use a jQuery UI widget, you must code two things in the way that’s prescribed for the widget. What are they?
Natasha2012 [34]

Answer:

the jQuery code and the jQuery UI selectors.

Explanation:

When we want to use jQuery UI widget we have to code two things and these are the jQuery code and the jQuery UI selectors. jQuery UI is a managed set of user interface(UI) effects,interactions,themes and widgets built on top of  JavaScript jQuery Library.

So we have to code the jQuery and the jQuery UI selectors.

3 0
3 years ago
Other questions:
  • Datta Computer Systems is considering a project that has the following cash flow data. What is the project's IRR? Note that a pr
    10·1 answer
  • Project managers have the overall responsibility for planning, executing, and completing a project. True False
    7·2 answers
  • Which course must first-time drivers in Florida take to be eligible for their Learner License?
    11·1 answer
  • The method of internet access that requires a phone
    7·2 answers
  • What types of storage can be used to access your data on another computer?
    7·2 answers
  • Which of the following are the benefits of using Responsive Display Ads?
    9·1 answer
  • 11) A single inheritance model means: * A) A class can only have one parent class (superclass) B) A class can only have one chil
    7·1 answer
  • A boundary marks the inside and outside of a system and sets the system apart from its environment.
    11·1 answer
  • Describe the uses of computer in different fileds? please help me ​
    14·1 answer
  • Different the policies and protocols in the industry
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!