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
scoundrel [369]
3 years ago
12

2.8 Code Practice: Question 1

Computers and Technology
1 answer:
yuradex [85]3 years ago
8 0

Answer:

Explanation:

First take the input of the numbers:

x = int(input("Enter the number of elements to be in the list:"))

b=[ ]

for i in range(0,x):

a=int(input("Element: "))

b.append(a)

c=[ ]

d=[ ]

for i in b:

if(i%2==0):

c.append(i)

else:

d.append(i)

c.sort()

d.sort()

count1=0

count2=0

for k in c:

count1=count1+1

for j in d:

count2=count2+1

print("Largest even number:",c[count1-1])

print("Largest odd number",d[count2-1])

You might be interested in
Create a view named product_summary. This view should return summary information about each product. Each row should include pro
RUDIKE [14]

Answer:

CREATE VIEW [product_summary] AS

SELECT product_id , order_count , order_total FROM Product;

SELECT *  FROM [product_summary] ;

Explanation:

  • First of all, use the CREATE VIEW syntax to create a view named product_summary that includes the product_id, order_count, order_total columns and returns the summary information about each product.
  • Use SELECT statement to return all the columns from the product_summary view.
5 0
4 years ago
One of the most common uses of spreadsheet are
otez555 [7]

I think it is Index Match?

6 0
3 years ago
In Python write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs
stealth61 [152]

Answer:

l = []

while True:

 no = int(input())

 if no>0:

   l.append(no)

 else:

   break

print(1)

If this helped consider marking this answer as brainliest. Have a good day.

3 0
2 years ago
Determine of population size​
damaskus [11]

Answer:

there a 7 billion of people as of 2015 census

3 0
3 years ago
Which button could Pamela press in the Microsoft Word spell checker to make the word “colour” instantly change to “color” whenev
Savatey [412]
One step is to right click on the word to add it to her personal dictionary. or, <span><span>Press F7. Word starts the spelling and grammar checking utility. </span><span>Make corrections, as appropriate, when prompted.
</span></span>

However, one can create a macro that would do the conversions :

1) Identify a list of words whose spelling you want to convert.2) Turn on the macro recorder. 3) Use the Replace feature to replace the spellings.4) Turn off the macro recorder.

The macro will do a conversion from one to the other. Later, as we have more words that need to be automatically replaced, we can just edit the macro and add those words.

8 0
4 years ago
Other questions:
  • Question 1 of 20 :
    15·2 answers
  • Write an algorithm whether the given number is positive negative or zero​
    5·1 answer
  • Your company received a call from a historical society inquiring about the possibility of networking a two-century-old building
    15·1 answer
  • 6.
    14·2 answers
  • What is the maximum number of WildFire® appliances that can be grouped in to a WildFire® appliance cluster?
    7·1 answer
  • What are some ways to find out what skills you need to develop at work? Check all of the boxes that apply.
    15·2 answers
  • Plz tell the answer I I'll mark u as the brainliest
    14·1 answer
  • A person who creates a computer virus is a (1)system analyst (2) techician(3) programmer​
    11·2 answers
  • What is the main function of processing unit​
    5·2 answers
  • What is a phone made out of dna
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!