Answer:
import random
randomlist = []
for i in range(0,20):
n = random.randint(-29,30)
if n < 0 :
n = 100
randomlist.append(n)
print(randomlist)
Explanation:
The random module is first imported as it takes care of random. Number generation.
An empty list called randomliay is created to hold the generated random integers.
Using a for loop, we specify the range of random numbers we want.
Inside the for loop ; we attach our generated random integer which will be in the range (-29 to 30) in a variable n
For each n value generated, if the value is less than 0( it is negative, since all the values are integers), replace the value with 100.
I don’t think it will work sadly. You can probably accumulate points though on your pre existing account. Hope that helps!
John can find the amount of Random Access Memory (RAM) memory installed on his computer with the Windows 7 under the category “<u>System and Security</u>” in the Control Panel.
To know the total amount of installed RAM through Control Panel in the computer with Windows 7, John should follow the steps as:
- Click the category named “System and Security”
- Now under “System”, click “View amount of RAM and processor speed”
- “Device Specifications” section displays the amount of installed RAM in John’s computer
Thus, above are the steps by which John’s can find the amount of installed RAM in his Windows 7 computer’s Control Panel.
What is Random Access Memory (RAM)?
RAM is the temporary memory in computers that stores the data currently being used by the processor.
You can learn more about Control Panel at
brainly.com/question/1445737
#SPJ4