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
almond37 [142]
2 years ago
5

create a list of numbers 0 through 40 and assign this list to the variable numbers. then, accumulate the total of the list’s val

ues and assign that sum to the variable sum1.
Computers and Technology
1 answer:
gogolik [260]2 years ago
5 0

Using the knowledge in computational language in python it is possible to write a code that create a list of numbers 0 through 40 and assign this list to the variable numbers.

<h3>Writting the code:</h3>

<em>numbers=list(range(53));</em>

<em>print(numbers);</em>

<em>str1 = "I like nonsense, it wakes up the brain cells. Fantasy is a necessary ingredient in living."</em>

<em>numbs=sum(map(lambda x:1, str1))</em>

<em>print(numbs);</em>

<em>numbers=list(range(41));</em>

<em>sum1=sum(numbers);</em>

<em>print(sum1);</em>

See more about python at brainly.com/question/18502436

#SPJ1

You might be interested in
Urgent will give brainliest who solves this....
Ratling [72]
THIS IS MY PERSONAL OPINION:
The world is indeed changing very fast, and the future brings new possibilities and new realities. I foresee that humans will thrive for another 50 years, until the global warming situation reaches its limits. The people in the future I think will not have any ( maybe rarely) social interactions, maybe we will go to the moon etc. but i still strongly believe that the end of humanity is decades close.
I hope this helps you :)
5 0
3 years ago
Read 2 more answers
How do I close the file so I can delete it ? Since it's open in another program
Luba_88 [7]
One way is to use task manager (ctrl alt del) then force close it by right clikgin and clicking 'end program' or 'clos program' or smething like that
7 0
4 years ago
Print even numbers till 50 in python coding.
e-lub [12.9K]

In python, you can use a simple list comprehension to solve this problem.

print([x for x in range(51) if x % 2 == 0])

This code prints all the even numbers from 0 to 50 including 0 and 50.

4 0
3 years ago
Which of the following best describes the relationship between if/else and switch statements :
kvasek [131]
I want to say ‘A’ since if/else and switch statements are both conditional statements.
7 0
3 years ago
In a 4-bit opcode.What is the maximum number of instructions allowed in your instrction set or your PROM?
lara31 [8.8K]

Answer:

(c) 16

Explanation:

An opcode is the short form for operation code which is also called instruction code. This code forms part of the instructions (instruction set) executed by the computer and it tells the computer the actual operation to be performed. The size of the opcode is the number of bits occupied by it. It is related to the instruction set size as follows;

2ˣ = I   ----------------(i)

Where;

x = opcode size or bit

I = maximum or total number of instructions allowed

From the question,

x = 4 bits.

Substitute this value into equation (i) as follows;

2⁴ = I

I = 16.

Therefore, the maximum number of instructions allowed in your instruction set or your PROM - Programmable read-only memory - is 16

7 0
3 years ago
Other questions:
  • Infrared, a wireless connection used in the past prior to bluetooth, was limited because it ________.
    10·1 answer
  • The material placed around the ignition device to feed the flame in arson is referred to as
    8·1 answer
  • You are the systems administrator for a scientific research company that employs over 100 scientists who write and run Linux pro
    13·1 answer
  • DOUBLE POINTS!! PLEASE HELP QUICKLY!!!!!
    15·2 answers
  • The smallest unit of storage is​
    15·1 answer
  • . the fact that a web app is written to be run within any of the standard
    5·1 answer
  • Megan says she never needs to look at the Transport Layer when she is searching for what went wrong with the network she support
    15·2 answers
  • I am not a living being, I am a cylindrical shape that has three to eight sides. I never die. I can build anything again. What i
    5·1 answer
  • FIFTY POINTS IF YOU CAN HELP ME!!!!
    11·1 answer
  • Compared with traditional methods, the entire rapid application development (RAD) process is expanded and, as a result, the new
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!