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 even numbers, odd numbers, or neither. the input begins with an integer indicating the number of integers that follow. ex: if the input is:

Answers

Answer 1

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()


Related Questions

What is exactly meant by the term coding in context of computer science?

Answers

Answer:

writing instructions for the computer that the computer can interpret

Explanation:

Digital publishing software has increased the use of which of the following?
O paper
O fonts
O color
O photos

Answers

Answer:

~Senpi Boi here~

Explanation:

What the Digital publishing increased was the Photo option.

(Hope this helps!)

Today, the Digital publishing software has increased the use of photos.

What is a Digital publishing software?

This is a software tools that make it easy to publish text and graphic editions in a digital form on electronic devices such as computer, tablet, smartphone etc.

In current time, these software tools has increased the use of photos for publishing.

Therefore, the Option D is correct.

Read more about publishing software

brainly.com/question/26695020

#SPJ2

The internet service that allows users to navigate among many pages is.

Answers

Answer:

The world wide web

Explanation:

The world wide web is a hypertext information system that links internet documents and allows users to navigate through the Web, by using a computer mouse to click on “links” that go to other web pages.

A database provides the capability of conducting searches or asking questions. A question or search for information in a database is called a ________.

Answers

A database provides the capability of conducting searches or asking questions. A question or search for information in a database is called a ___

✓ query

A website implements a sequential menu (as shown in the diagram) that indicates the relative page that the visitor is on in the website. Which planning phase covers this aspect?

A. Wireframe
B. Browsing functionality
C. Content
D. Page description diagrams

Answers

Answer:

Letter B. Browsing Functionality

Explanation: I just did this question

what is the full meaning of I.C.T​

Answers

Answer:

information communications technology

Answer:

The infrastructure and components that enable modern computing is known as I.C.T (information and communications technology).

Although there is no single, universal definition of I.C.T, it is widely understood to refer to all devices, networking components, applications, and systems that when used together allow people and organizations (i.e., businesses, nonprofit organizations, governments, and criminal enterprises) to interact in the digital world.

You work as the IT administrator for a growing corporate network. You are in the process of creating an iSCSI storage area network (SAN) on the CorpisCSI server. The server is currently connected to the network using an Ethernet cable. To increase the server's performance, yoru have decided to replace the existing Ethernet connection with a fiber optic connection. In this lab, your task is to complete the following: . Connect the CorpisCSI server to the switch using the appropriate fiber optic cable. . Examine the port types on the switch. Examine the server's fiber optic NIC. . When connecting the server, use the color coding on the end of the fiber optic cable to identify the Tx and Rx connection ends Connector A (red) Tx. - Connector B (black) is Rx. . Remove the server's previous Ethernet network connection and place the Ethernet cable on the Shelf. . Verify that the server is connected to the network through the fiber optic connection. C When connecting fiber optic cables, the transmit (T) port on one device is connected to the receive (Rx) port on the other device. The fiber cables in this lab have already had their Rx and Tx connectors switched as necessary. You can view component information in the Details window on the Specification tab

Answers

The steps in the above scenario are:

Connect to an iSCSI target:Then  Create a volume:

How do you Connect to an iSCSI target?

This can be done by:

Select CORPSERVER from Hyper-V Manager, Make sure to Maximize the window to view all virtual machines.Then Right-click CorpFiles16 and select Connect.Use the Server Manager on CorpFiles16 to select Tools > iSCSI Initiator.Via the Target field, enter the server name of the target server.Then click.Select Quick Connect and then Done and then OK.

Note that the steps in the above scenario are:

Connect to an iSCSI target:Then  Create a volume:

Learn more about IT admin from

https://brainly.com/question/26096799

#SPJ2

You have purchased a new LED monitor for your computer. On the back of the monitor, you see the following port (pictured below). Which type of cable should you use to connect the monitor to your computer

Answers

There's no picture however the cable might be a HDMI since it's commonly used

you want to be able to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose. which feature should you use?

Answers

The  feature to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose in the above scenario is data validation.

What is data validation?

Data validation is a term that connote the act of monitoring the truthfulness and quality of source data before one can make use of it, importing or even  process data with it.

Note that The  feature to restrict values allowed in a cell and need to create a drop-down list of values from which users can choose in the above scenario is data validation as it ensure that users can make their own choice.

Learn more about data validation from

https://brainly.com/question/27138101

#SPJ1

If you are interested in an occupation as an operating system administrator or software engineer, you also may benefit from certifications in networking, hardware, and the Internet. Group of answer choices True False

Answers

True

Explanation:

because in that field there are many things you need to learn and that includes mostly all of them, as an Operating system administrator you most likely need to know things revolving around the system such as the compatibility with the Hardware. And as an Software engineer you NEED to know if your software is even compatible with the new technologys or if there are any problems, the same goes to networking

feel free to correct me

At Universal Containers, the sales managers would like Opportunities that have NOT been updated in the past 30 days to automatically be flagged. How should a System Administrator implement this requirement

Answers

The System Administrator implement and Create a formula field to calculate the time since last update and display an image of a red flag if it meets the defined criteria.

What is a  Formula field?

This is known to be a read-only fields that often calculate a value through the use of other fields or a given  formula.

Note that The System Administrator implement his requirement and Create a formula field to calculate the time since last update and display an image of a red flag if it meets the defined criteria.

Learn more about System Administrator  from

https://brainly.com/question/27129590

#SPJ1

A company will be able to obtain a quantity discount on component parts for its three products, X1, X2 and X3 if it produces beyond certain limits. To get the X1 discount it must produce more than 50 X1's. It must produce more than 60 X2's for the X2 discount and 70 X3's for the X3 discount. Which of the following pair of constraints enforces the quantity discount relationship on X3? a. X31 ? M3Y3 , X32 ? 50Y3 b. X31 ? M3Y3 , X31 ? 50 c. X32 ? (1/50)X31 , X31 ? 50 d. X32 ? M3Y3 , X31 ? 50Y3

Answers

The  pair of constraints enforces the quantity discount relationship on X3 is X32 ≤ M3Y3 and X31 ≥ 70Y3.

What is Relationship discount?

Relationship discounts especially on mortgages are known to be special loan terms that is said to be offered by financial institutions offer if a person have different types of accounts with them.

Note that The  pair of constraints enforces the quantity discount relationship on X3 is X32 ≤ M3Y3 and X31 ≥ 70Y3 as it best tell what it is about.

Learn more about  discount relationship from

https://brainly.com/question/10286547

#SPJ4

You have the following code:
----------------------------------------------------------------------------------------------
fruit_list = ["strawberries", "bananas", "apples", "grapes"]
total_cost = 0
for fruit in fruit_list:
if fruit in ["apples","bananas"]:
total_cost += 3
elif fruit == "cantaloupe":
total_cost += 5
elif fruit in ["raspberries","strawberries","grapes"]:
total_cost += 4
-------------------------------------------------------------------------------------------------

What will be the value of total_cost?

A.13
B.14
C.15
D.7

Answers

Answer:

7

Explanation:

We already have the functions that tells us how much to add. If you add all this, you will get 12. HOWEVER because cantaloupe is in the list, the computer does not count that. So if we add that again without 5(how much the cantaloupe costs), we get 7.

"Computer Science is no more about computers
than astronomy is about telescopes"
- Edsger W. Dijkstra

Answers

Answer:

si

Explanation:

Which automatic startup option should you choose when windows' startup fails immediately after installing a new driver but before you have logged on again

Answers

Answer:

last known good configuration

Explanation:

If you're having difficulties starting Windows, the Last Known Good Configuration, or LKGC for short, is a technique to get it started. It loads the drivers and registry data from the last time you began and shut down your computer successfully.

Help me with this question asap please :)

Answers

Answer:

I think it's sequence as there is a pattern of connection in the words

A student wants to check six websites. Four of the websites are social and two are school-related. After checking just two sites, she has to leave for school. What is the approximate probability that she checked a social website first, then a school-related website?.

Answers

The approximate probability that she checked a social website first, then a school-related website is known to be 0.267

What is the check about?

In the above scenario, there are:

Total number of websites = 6

Number of school websites = 2

Number of social websites = 4

When she checks the social website first, the probability of checking a social website  is said to be 4/6

If one social website is checked, she is left with 3 social website and 2 school websites. So now the total number of websites will be 5.

The probability that the 2nd website that she checks is school related will be = 2/5

Therefor, the approximate probability that she checked a social website first, then a school-linked website is =

4/6 x 2/5

= 0.267

Therefore, the answer will be  0.267 probability level.

Learn more about websites from

https://brainly.com/question/10475324

#SPJ3

CODEHS: WHY is it important to know the difference between div and span?

Answers

Span and div are both generic HTML elements that group together related parts of a web page. However, they serve different functions. A div element is used for block-level organization and styling of page elements, whereas a span element is used for inline organization and styling.

What are the real-life applications of coding? any smart person who can give this ans

Answers

Answer:

Coding is used for a ton of different things. It can be used to create websites, video games, and apps. It is also an essential part of artificial intelligence and machine learning. Coding is a way to create computer programs that have a sequence of instructions for the computer to execute.

Explanation:

_____ drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power of ssds while still having the low cost and storage capacity of hard drives.

Answers

Answer:

Hybrid drives are storage drives that contain both solid-state storage and hard disks in an attempt to gain the speed and power of ssds while still having the low cost and storage capacity of hard drives.

Every javafx main class __________. group of answer choices implements javafx.application.applicatio extends javafx.application.application overrides start(scene s) method overrides start() method

Answers

Two concepts central to JavaFX are a stage and a scene.

Research the history of Internet in computers

Answers

Answer:

This allowed different kinds of computers on different networks to "talk" to each other. ARPANET and the Defense Data Network officially changed to the TCP/IP standard on January 1, 1983, hence the birth of the Internet. All networks could now be connected by a universal language.

What initialization vector (IV) do most weak implementations of the Wireless Equivalency Protocol (WEP) use

Answers

24 bits is an initialization vector (IV) which is used by most weak implementations of the Wireless Equivalency Protocol (WEP).

What is Wireless Equivalency Protocol (WEP)?

Wireless Equivalency Protocol (WEP) can be defined as a standard wireless protocol that is designed and developed to provide a significant level of security and privacy on 802.11b wireless local area network (WLAN).

According to the IEEE Wireless Fidelity (Wi-Fi) standard, 24 bits is an initialization vector (IV) which is used by most weak implementations of the Wireless Equivalency Protocol (WEP).

Read more on Wireless Equivalency Protocol here: https://brainly.com/question/13697151

#SPJ1

when you start a new, blank document, you usually end up changing the font to arial 11.5 point. how can you make these settings the default for this and all future new documents?

Answers

The fonts setting can be change to default by opening the format menu, after that click Font, and then click the Font tab. Make the needed changes that you want, and then click Default.

What is font?

A font is a set of printable or displayable text character s in a specific style and size.

These are the complete set of character like numbers, letters, and symbols/icon within a typeface, which is the design of the characters.

Hence, we can easily change the fonts setting to default.

Learn more about fonts here,

https://brainly.com/question/14934409

#SPJ1

Mille gets a text from her friend asking if she wants to come over. It seems like a bit of a hassle to go to her friend's house, especially when they
could watch online videos together and talk over the phone. What is the BEST advice for Millie?
OA. Her friend will probably be relieved If she does not come over.
OB. They should just say whatever they want to say to each other over social media.
OC. It will be a more positive experience if she spends time with her friend in person.
OD. If they are doing the same activities virtually as they would if they were together, it does not make much difference.

Answers

Answer:

OC. It will be a more positive experience if she spends time with her friend in person.

Explanation:

You should always spend time with people in person rather than online whenever you get the chance.

Types in java are divided into two categories. the primitive types are boolean, byte, char, short, int, long, float and double. all other types are ________ types

Answers

types in java are divided into two categories. the primitive types are boolean, byte, char, short, not, long, float, and double. all other types are REFERENCE types

what word makes this inappropriate????

Answers

Hm. Maybe it’s a glitch? Maybe it thought of something dirty? :/

What is a border line

Answers

Answer:

a border line is what separates to places from one another like if i were to go to mexico i would have to cross the border

Explanation:

Depends on context.

- Could be a line marking a border

- Barely acceptable; borderline

Example:

She was a borderline candidate.  

This means that she barely made it as a candidate role.

John is using a spreadsheet program. He needs to select two cells that are non-adjacent to one another. He is currently holding down the "Shift" key while clicking on the two cells. Interpret John's mistake.

John is using a right click when he should be using a left click

John should be holding the "Alt" key instead of the "Shift" key

John is not making any mistakes

John should be holding the "Ctrl" key instead of the "Shift" key

Answers

Answer:

John should be holding down the "Ctrl" key instead of the "Shift" key.

Explanation:

"Ctrl" key must be held down when selecting multiple cells, not "Shift" key.

Hope this helps!

Answer:

John should be holding the "Ctrl" key instead of the "Shift" key

Explanation:

what are trends in GPS ? ​

Answers

Answer:

New Trends in GPS & Telematics in 2021 and Beyond - Rewire Security. Real-time location tracking systems for cars, vans, motorcycles, lorries, wired or plug & play options—battery-powered GPS tracking systems with magnets attached to flat metal surfaces such as containers.

Explanation:

Other Questions
pls help and explain:) Which sentence uses active voice. just before dawn, the cat wakes up and cries out to be fed. the can of fishy-smelling food is eaten greedily by the cat. the needy cat is fed by celia. the back of the couch was scratched up by the cat. Amina and her mother are buying green coffee beans to make qahwa, an Arabiccoffee recipe. Green coffee beans cost $0.58 for each ounce. Amina and hermother buy 12.5 ounces of green coffee beans. What is the total cost of the greencoffee beans? How can you prove that csc^2()tan^2()-1=tan^2() Can someone tell me the answer Ive been stuck on this for hours Travis is cutting strips of paper for a project. He needs strips that are 114 inches wide. He cut his first strip too wide. His percent error was 10%. How wide did Travis cut the strip of paper? Enter your answer as a mixed number in simplest form in the box. Passengers, who are travelling in a car west along a road that runs east-west, see a mountain 9 km away on a bearing of 290. When they have travelled a further 5 km west along the road, what will be the distance to the mountain? Oracin con Desertizar Please help me with this math problem!! I will give brainliest!! :) I need helppppppp :(( Vhich is a solution to the equation?(x-2)(x + 5) = 18x= -10x==7x=-4x= -2 A coordinate grid with a line labeled y equals negative 2 x plus StartFraction 3 over 2 EndFraction and passes through the points (9, 1.5) and (1, 0.5). m = 3 and b = negative StartFraction 2 over 3 EndFraction. m = 2 and b = m equals negative 3 and b equals negative StartFraction 1 over 3 EndFraction. m = 2 and b = negative StartFraction 2 over 3 EndFraction. m = m equals StartFraction 3 over 2 EndFraction and b equals negative StartFraction 2 over 3 EndFraction and b = m equals negative StartFraction 3 over 2 EndFraction and b equals negative StartFraction 2 over 3 EndFraction m = -2 and b = m equals negative 2 and b equals negative StartFraction 2 over 3 EndFraction reading: Bud, not Buddy worth 15 points What does a play have that a story doesn't? (select all that apply)(QUICK PLEASE!!!!!!!!!)actsscenescharacterssetting What does it mean when a name is very interesting to you? Choose the molecule that is most concentrated at each ph ? City A is 300 km due east of city B. City C is 200 km on a bearing of 123 from city B. How far is it from C to A? what is full form of RAM??? You decide to buy a tablet for college. The tablet you want is currently on sale for 29% off the original price. If the original price was $899, what is the current price? Round your answer to the nearest cent (2 decimal places). which type of government would you most want to live? Why?