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
Korolek [52]
3 years ago
13

Given the lists list1 and list2 that are of the same length, create a new list consisting of the last element of list1 followed

by the last element of list2, followed by the second to last element of list1, followed by the second to last element of list2, and so on (in other words the new list should consist of alternating elements of the reverse of list1 and list2). For example, if list1 contained [1, 2, 3] and list2 contained [4, 5, 6], then the new list should contain [3, 6, 2, 5, 1, 4]. Associate the new list with the variable list3.

Computers and Technology
1 answer:
Inessa [10]3 years ago
6 0

Answer:

list1 = [1, 2, 3]

list2 = [4, 5, 6]

list3 = []

newlist = []

for i in list1:

   for j in list2:

       if list1.index(i) == list2.index(j):

           newlist.append(j)

           newlist.append(i)

           break

   

for i in reversed(newlist):

   list3.append(i)

print(list3)

Explanation:

The programming language used is python.

List 1 and 2 are initialized, and two empty lists are initialized too, these two lists are going to be used in generating the new list.

Two FOR loops are used for both list one and two respectively, to iterate through their content, the IF statement and the break is placed within the for loop to ensure that there is no repetition.

The index of list 1 and list 2 are appended (added) to a new list one at a time.

The new list is then reversed and its content are added to list 3 to give the final solution.

NOTE: The reason a separate list was created was because the reversed() function does not return a list, so in order to get the list, it must be added to an empty list as you reverse it.

You might be interested in
SO cLoSe yEt sO fAr aWaAaAaAy...
AlekseyPX
I’m so proud lol lol
8 0
3 years ago
Read 2 more answers
are there any hexadecimal digits that cannot be created using 4 bits? how many bits would you need to represent the hexadecimal
Delvig [45]
  • 1.No there is no any hexadecimal digits that cannot be created using 4 bits. Hexadecimal digits can all be created using 4 digits/
  • 2.The number of bits required to to represent the (10)16 is 5 bits.
  • 3. To represent every hexadecimal value from 016 to ff16, 8 bits will be required
  • 4. The given number is in binary and to convert any binary number to hexadecimal, we convert it sets of 4 digits to the hexadecimal equivalent.
  • 5. The value of converting the given binary to a number in  hexadecimal is 93DA

<h3>what is hexadecimal?</h3>

The term hexadecimal refers to a number systems in base 16. Most number systems are in decimal or base ten however hexadecimal is a kind of number system that is in base 16. Hexadecimal has the base ten numbers from 0 to 9 and additional letters A, B, C, D , E, and F

<h3>How to convert to binary to hexadecimal</h3>

(1001 0011 1101 1010) base 2

1001= 8+0+0+1=9

0011=0+0++2+1=3

1101=8+4+0+1=13=D

1010=8+0+2+0=10=A

bringing the values together gives

93DA

Read more on hexadecimal here: brainly.com/question/11109762

#SPJ1

8 0
1 year ago
A file type is the standard used to and information in a computer. All file types have unique that determine which program to us
Oxana [17]

The term record types portrays the assortment of relationship among archives and the applications that utilization them. The most clear utilization of this component is that, for instance, Windows knows to run Notepad when you double tap on a book report in Explorer (confirmation that Windows XP isn't genuinely question arranged).

Genuine object-situated configuration manages that articles (for this situation, records and envelopes) know about their very own attributes. This plan is just copied in Windows XP. Rather than each record knowing which application is utilized to alter it, Windows decides how to deal with a document dependent on the filename expansion. This structure has points of interest and weaknesses, however Microsoft's choice to shroud filename augmentations, the reason for record affiliations, just makes the entire framework increasingly hard to comprehend and ace.

Everything begins with document augmentations, the letters (normally three) that pursue the period in many filenames. For instance, the augmentation of the record Readme.txt is .txt, connoting a plain-content document; the expansion of Resume.wpd is .wpd, implying an archive made in WordPerfect. Naturally, Windows shrouds the expansions of enlisted record types in Explorer and on the work area, however it's ideal to have them shown.

Record expansions not just enable you to effectively figure out what sort of document a specific document is (on the grounds that symbols are never unmistakable enough), yet additionally enable you to change Windows' view of the kind of a record by essentially renaming the augmentation. Note that changing a document's augmentation doesn't really change the substance or the organization of the record, just how Windows associates with it.

To show your document augmentations, open Folder Options in Control Panel (or from Explorer's Tools menu), pick the View tab, and mood killer the Hide expansions for realized record types alternative. Snap OK when you're set.

By concealing record expansions, Microsoft wanted to make Windows simpler to utilize—an arrangement that exploded backward for a few reasons. Since just the expansions of enrolled documents are covered up, the augmentations of records that aren't yet in the File Types database are still appeared. Even all the more confounding that, when an application at long last claims a specific document type, it can appear to the unpracticed client just as the entirety of the old records of that type have been renamed. It likewise makes an "information hole" between the individuals who comprehend document types and the individuals who don't; take a stab at telling somebody whose PC still has concealed augmentations to discover Readme.txt in a catalog loaded with records. Different issues have emerged, for example, attempting to separate Excel.exe and Excel.xls in Explorer when the expansions are covered up; one record is an application and the other is a report, however they might be generally undefined.

Redo Context Menus

A setting menu (once in a while called an alternate route menu ) is the little menu that shows up when you utilize the correct mouse catch to tap on a record, envelope, application titlebar, or almost some other item on the screen. More often than not, this menu incorporates a rundown of activities proper to the item you've clicked. As it were, the alternatives accessible rely upon the specific circumstance.

The setting menu for documents, the most ordinarily utilized and altered setting menu, relies on the sort of record chosen, which is dictated by the filename augmentation. For instance, all content documents (with the .txt augmentation) will have a similar setting menu, paying little respect to what they contain or which application was utilized to make them. (This is the reason Windows gives you a harsh admonition when you attempt to change a document's expansion.)

4 0
3 years ago
What score does the scoreboard on the loading screen have?​
AnnyKZ [126]

<u>Answer</u>:

<em>It always shows two numbers. One is the highest score and another is the current score</em>. Whatever may be the game, it will always shows the highest score when the game is downloaded.

<u>Explanation</u>:

There would be default value set by the company who designs the game, to encourage <em>people to reach that level and move higher.</em>

So a highest score is always indicated to challenge the current user, so that there is a goal to reach and the user keeps <em>playing the game and in turn the game become popular.</em>

5 0
3 years ago
In a data dictionary, ____ is the maximum number of characters for an alphabetic or character data element or the maximum number
const2013 [10]

Answer:

length

Explanation:

<h2><u>Fill in the blanks </u></h2>

In a data dictionary, <u>length</u>  is the maximum number of characters for an alphabetic or character data element or the maximum number of digits and number of decimal positions for a numeric data element.

4 0
3 years ago
Other questions:
  • Which two approaches optimize test maintenance and support future declarative configuration changes? Choose 2 answers Create a m
    8·1 answer
  • Arrange the steps for conflict resolution in proper sequence.
    11·2 answers
  • What is computer hacking?
    11·2 answers
  • The set of rules for how computers talk to one another
    6·1 answer
  • Going to Grad School! In the College of Computing and Software Engineering, we have an option for students to "FastTrack" their
    11·1 answer
  • Order the steps to take when drawing electron dot diagrams.
    15·2 answers
  • The icon below represents the ____________.
    8·1 answer
  • What is not true of credit scores?
    11·1 answer
  • Ok so I usually don’t do this but I just need an answer , on Instagram a notification popped up while I was watching someone’s s
    9·2 answers
  • Consumer consequences for illegally downloading software
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!