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
components Of desktop system:
- motherboard { backbone of the computer system controlling all tasks }
- RAM { temporary random access memory }
- ROM { stores huge amount of data ex - photos, videos }
- CPU { central processing unit which processes data }
- GPU {graphical processing unit for video editing, 3D graphics rendering}
Marilee can sue for breach of contract, because Les had a preexisting duty to do all of the work.
What is hard drive ?
The physical device that houses all of your digital stuff is a hard disk. Digital stuff that is kept on a hard drive includes your papers, photos, music, videos, applications, application preferences, and operating system. There are internal and external hard drives.
What is software?
Software is a collection of instructions, data, or computer programs that are used to run machines and carry out particular activities. It is the antithesis of hardware, which refers to a computer's external components. A device's running programs, scripts, and applications are collectively referred to as "software" in this context.
What does running program means?
Double-click the executable file or the shortcut icon pointing to the executable file on Windows to start the program. If you find it difficult to double-click an icon, you can highlight it by clicking it once and then using the Enter key on the keyboard.
Learn more about hardware and software click here:
brainly.com/question/24231393
#SPJ4
Answer:
1. When calculating the division of each number in some range of floating type number.
2. One cannot use real numbers for exact comparison. Two real numbers are rarely equal. Real numbers are have representational errors.
Explanation:
1. In structured programming, we make use of a floating-point number with a fractional part for a loop control variable. a given scenario is when we just want to calculate the division of each number in some range of floating type number. However, the downsides to using a floating-point number with a fractional part for a loop control variable are:
- They can cause 'off-by-one' failure
- A floating point number cannot represent all simple fractions exactly
2. The pitfalls of using real numbers for the index variable in a for loop:
- Two real numbers are hardly equal
- One cannot use real numbers for exact comparison
- The existence of representational errors
Answer:
Answer explained
Explanation:
From the previous question we know that while searching for n^(1/r) we don't have to look for guesses less than 0 and greater than n. Because for less than 0 it will be an imaginary number and for rth root of a non negative number can never be greater than itself. Hence lowEnough = 0 and tooHigh = n.
we need to find 5th root of 47226. The computation of root is costlier than computing power of a number. Therefore, we will look for a number whose 5th power is 47226. lowEnough = 0 and tooHigh = 47226 + 1. Question that should be asked on each step would be "Is 5th power of number < 47227?" we will stop when we find a number whose 5th power is 47226.