nums = input("Enter your numbers: ")
lst = nums.split()
new_lst = ([])
for i in lst:
if int(i) >= 0:
new_lst.append(int(i))
new_lst.sort()
for x in new_lst:
print(x, end=" ")
The above code is in case the user enters the numbers.
def func(lst):
lst.sort()
for i in lst:
if i >=0:
print(i, end=" ")
lst = ([10,-7, 4, 39, -6, 12, 2])
func(lst)
The above code is in case you must input the numbers manually via a function.
I hope this helps!
Answer:
Case
Explanation:
In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.
Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.
For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters.
A Select Case statement can be defined as a conditional statement that avails software developers or programmers the ability to test a variable by comparing it with a list of values.
In a Select Case statement, each variable is referred to as a Case.
Generally, when a Select Case statement executes, the value of the test expression is compared with the values that follow each of the Case keywords.
Answer:
Crosstalk, Jitter, Impulse noise.
Explanation:
Crosstalk is a network error that occurs when one pair of cable causes interference on another pair of cables thereby preventing efficient data transmission.
Jitter may also impair the accuracy of the data being transmitted across network because minute variations in amplitude, phase, and frequency always occur. The generation of a perfect carrier signal in an analog circuit is almost impossible. The signal may be affected by continuous and rapid network gains or phase changes.
Impulse noise (also referred to as spikes) is the primary source of errors in data communications. Impulse noise can be caused by positioning a communications cable near a source of intermittent but strong electromagnetic pulses, such as an elevator motor.
Counter measures
Shielding (protecting wires by covering them with an insulating coating) is one of the best ways to prevent impulse noise, cross-talk.
Amplifiers can be used to increase signal strength since the connection would run across 4 floors.
There're all conjunctions.
You can seperate them in sentences after a comma for a run-on sentence.