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
Andrei [34K]
2 years ago
12

6.25 lab: even/odd values in a vector write a program that reads a list of integers, and outputs whether the list contains all e

ven numbers, odd numbers, or neither. the input begins with an integer indicating the number of integers that follow. ex: if the input is:
Computers and Technology
1 answer:
neonofarm [45]2 years ago
8 0

def is_list_even(my_list):

   for i in my_list:

       if(i%2 != 0):

           return False

   

   return True

   

   

def is_list_odd(my_list):

   for i in my_list:

       if(i%2 == 0):

           return False

   

   return True

   

def main():

   n = int(input())

   lst = []

   

   for i in range(n):

       lst.append(int(input()))

   

   if(is_list_even(lst)):

       print('all even')

   

   elif(is_list_odd(lst)):

       print('all odd')

   

   else:

       print('not even or odd')

       

       

if __name__ == '__main__':

   main()

You might be interested in
Non linear editing can cause _____ where edit and re-edit and re-edit again can cause video to be less true than the original ma
Oxana [17]

Non-linear editing can cause modification in the original video whereas editing and re-edit and re-edit again can cause the video to be less true than the original material.

<h3>What is non-linear editing?</h3>

In non-linear editing, the editor can do any operation with the video like adding or removing any frame without starting from the beginning.

It's been characterized as a ‘cut and paste’ technique that can really innovate how video makers approach videography.

Therefore Non-linear editing can cause modification in the original video whereas editing and re-editing and re-editing again can cause the video to be less true than the original material.

To know more about non-linear editing follow

brainly.com/question/15614247

#SPJ4

8 0
2 years ago
2. You want to discard your old computer and want to securely erase the data from your hard drive. What can you use to do this a
storchak [24]
First, you can backup all of your very important files in a hard drive or a USB that has a big memory. The data that should be stored inside your hard drive are not so important data. The data that you can let go of. Do not save any personal information in your hard drive. After that, you can download a software that can be used to totally wipe out data. A recommended software would be Active Killdisk. This process is called refurbishing. 
5 0
4 years ago
The physical parts or components of a computer system is called .
dmitriy555 [2]
Answer:
Motherboard

Explanation:
Motherboard is the main component of a computer. It connects with other parts of the computer including drive disks, RAM and CPU and any other expansion slots :)

(Hope it helped)
4 0
3 years ago
If a system's instruction set consists of an 8-bit opcode, what is the maximum number of output signal lines required for the co
otez555 [7]

Answer:

D. 256

Explanation:

Given

Instructions = 8\ bit

Required

Determine the maximum number of output

To get the required value, we make use of the following:

Maximum = 2^n

Where n is the bits of the opcode.

i.e.

n = 8

Substitute 8 for n in Maximum = 2^n

Maximum = 2^8

Maximum = 256

<em>Hence, option D answers the question</em>

6 0
3 years ago
NEED HELP ASAP 50 POINTS AND BRAINLIEST SOCIAL MEDIA RELATED
Bezzdna [24]

Well the answer is electronic mailing lists because a mailing list is a list of emails used for a company or group to send a mass email to many users at once. The only way to view this mass emails is through an email application.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Write a multithreaded program that generates the Fibonacci series using Pthreads thread library. This program should work as fol
    10·1 answer
  • Is a program that allows you to view images and animations, listen to audio, and watch video files on your computer or mobile de
    11·1 answer
  • The natural functions of Earth seem all _____ in one way or another.
    9·1 answer
  • The emergence of MP3 (iPod) technology is an example of creative destruction because a. It is less expensive than compact discs
    14·1 answer
  • The proof that the Clique problem is NP-complete depends on a construction given in Theorem 34.11 (p. 1087), which reduces 3SAT
    11·1 answer
  • Why is information so important?
    6·2 answers
  • 1. What does a network allow computers to share?
    13·1 answer
  • Why did my typing suddenly become delayed, but then went back to normal a few minutes later. Is this spyware or smth?
    6·1 answer
  • Designing a mouse to fit well in your hand would demonstrate ..?
    14·2 answers
  • Three reasons why users attach speakers to their computer
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!