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
Both IT and organizational strategies are static and can be harmed when people resist change because IS success depends on the s
anzhelika [568]
Think it’s true idk
8 0
3 years ago
Which best compares portrait and landscape orientations?
julsineya [31]
#2: Portrait taller than wide & landscape wider than tall
8 0
3 years ago
Strengths and weaknesses about esport
grandymaker [24]

Answer:

you can practice and make money it can also do bad on your eyes ik cuz i do esports

Explanation:

8 0
3 years ago
Fromwhich object do you ask for DatabaseMetaData?ConnectionResultSetDriverManagerDriver
icang [17]

Answer:

Connection

Explanation:

We can get DatabaseMetaData from the java.sql.Connection object.

The relevant API call is Connection.getMetaData().

This returns an object of the type DatabaseMetaData.

Some of the methods available as part of the DatabaseMetaData object are:

  • getDatabaseMajorVersion()
  • getDatabaseMinorVersion()
  • getDriverName()
  • getDriverVersion()
  • isReadOnly()
  • getCatalogs()
  • getTables()
  • supportsBatchUpdate()
  • supportsUnion()
8 0
3 years ago
What are the similarities and differences between the sample résumés, in terms of content and formatting?
poizon [28]

Answer:

in general terms a sample resume would have less on it with more of a general overview,while a full resume has the whole 9 yards  

6 0
4 years ago
Other questions:
  • What is an extrinsic value? A. something that is valuable in and of itself B. something that is valuable because it leads to ano
    12·1 answer
  • _____ performs a real-time lookup of a digital certificate’s status. Group of answer choices Certificate Revocation List (CRL) R
    6·1 answer
  • Which of the following is NOT a consideration designers must make when using colors?
    15·1 answer
  • Which method is the best way to keep from running late on the day of a test
    10·1 answer
  • For the client-server application over TCP, why must the server program be executed before the client program? For the client se
    13·1 answer
  • If brake fluid boils:
    11·2 answers
  • Part1) Given 3 integers, output their average and their product, using integer arithmetic.
    12·1 answer
  • Which statement about digital certificates is​ FALSE? A. The CA verifies a digital certificate​ user's identity online. B. Digit
    7·1 answer
  • The way that a writer displays their personality and imagination on the page is called:
    13·1 answer
  • Makayla is cre iting a brochure for her computer consulting company. She designed the layout and placed a banner containing the
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!