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
Nuetrik [128]
3 years ago
8

g Write a Racket function (process lst1 lst2) that processes the corresponding elements of the two lists and returns a list. If

the corresponding elements are both numbers, include the sum of the two corresponding elements in the list that is returned.
Computers and Technology
1 answer:
blagie [28]3 years ago
8 0

Answer:

  1. def process(lst1, lst2):
  2.    newList = []
  3.    for i in range(0, len(lst1)):
  4.        sum = lst1[i] + lst2[i]
  5.        newList.append(sum)
  6.    return newList
  7. list1 = [1, 3, 5, 7, 9]
  8. list2 = [2, 4, 6, 8, 10]
  9. print(process(list1, list2))

Explanation:

Firstly, create a function process that takes two input lists (Line 1). In the function, create a new list (Line 2). Use a for loop to traverse through the elements of the two lists and total up the corresponding elements and add the sum to the new list (Line 3 - 5). At last, return the new list (Line 6).

In the main program, create two sample list and use them as arguments to test the function process (Line 8 - 9). We shall get the output  [3, 7, 11, 15, 19].

You might be interested in
Hy <br> Anyone from kerala?
Lera25 [3.4K]

Answer:

i dont know

Explanation:

7 0
2 years ago
Read 2 more answers
Clarity
shutvik [7]

Answer:

1)engagement

2)clarity , consistency , simplicity

3)consistency

4)clarity ,consistency ,simplicity

Explanation:

The answers of the four parts are as mentioned above.

If the game is engaging the interest of the interested players will be retained certainly.

If it is clear, consistent and simple, then you will definitely be able to retain the kind of fun the game will be creating in the intended player audiences.

If its consistent, then the game will certainly require one type of approach.

And if its clear, consistent and simple then the game will be providing the flexibility for the future modification.

Hence the above answer.

7 0
3 years ago
Complete the sentence.<br> A text messaging application is an example of a _____ application.
Ne4ueva [31]

Answer:

chat application

Explanation:

3 0
2 years ago
Read 2 more answers
Discard an old computer and want to erase my files
Tamiku [17]
You can use a program like SafeErase to wipe all of your data throughly off your computer. 
7 0
3 years ago
Which VMware product would allow administrators, to manage enterprise desktops with increased reliability, security, end-user ha
ahrayia [7]

Answer: Horizon

Explanation:

VMware Horizon Suite is a collection of products designed by VMware for Windows, Mac and Linux which allows administrators, to manage enterprise desktops with increased reliability, security, end-user hardware independence, and convenience

delivering data securedly on different remote devices.

7 0
3 years ago
Other questions:
  • What guidelines should you follow when adding graphics to your presentations?
    14·2 answers
  • PLEASE HELP
    14·2 answers
  • You use Cat5e twisted pair cable on your network. Cables are routed through walls and the ceiling. A user puts a screw in the wa
    9·1 answer
  • Jane sold many notebooks at her school fair and earned a good amount of cash. To keep a record, she entered all the cash values
    10·1 answer
  • What is the main reason to create flash cards?
    9·2 answers
  • The exercise instructions here are LONG -- please read them all carefully. If you see an internal scrollbar to the right of thes
    12·1 answer
  • Modify class Time2 of fig 8.5, (which is split into four pictures) to include a tick method that increments the time stored in a
    8·1 answer
  • Why are people's visions of utopias and dystopias subjective?
    9·1 answer
  • 1.Which of the serves as the basis for determining whether an object has moved or not?
    10·1 answer
  • if we try to use tail-recursive rules to implement non-tail-recursive rules, it will normally result in rules that are
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!