Answer:
negatives = []
zeros = []
positives = []
while True:
number = input("Enter a number: ")
if number == "":
break
else:
number = int(number)
if number < 0:
negatives.append(number)
elif number == 0:
zeros.append(number)
else:
positives.append(number)
for n in negatives:
print(n)
for z in zeros:
print(z)
for p in positives:
print(p)
Explanation:
Initialize three lists to hold the numbers
Create a while loop that iterates until the user enters a blank line
Inside the loop:
If the number is smaller than 0, put it in the negatives list
If the number is 0, put it in the zeros list
Otherwise, put the number in the negatives list
When the while loop is done, create three for loops to print the numbers inside the lists
25 SQUARES
How this is calculated?
- The size of the squares doesn't matter, since the number of squares will be the same.
- We have a row of 5 squares: and on top of this you stack 5 more squares.
- Doing this for a total of 5 times so that we have 5 rows with 5 squares each.
- So we have 5 + 5 + 5 + 5 + 5 = 25 squares.
What is an array?
- An array is a data structure that holds similar, related data.
- Before an array can be used, it must be declared. To declare an array a programmer gives it at least two properties:
- an identifier
- a size - the number of elements it will hold
To know more about arrays, refer:
brainly.com/question/26104158
#SPJ4
Answer:
B.
Slides or positive films give high quality pictures with higher color saturation and contrast.
Explanation:
The above is true for slides with positive film. This is because, the positive film happens to have a high resolution when it was been used thereby giving out a high quality video at the end of the recording. The higher colour saturation and contrast are also an attribute of a slide or positive film.