Answer:
An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.
In more technical terms, a computer virus is a type of malicious code or program written to alter the way a computer operates and is designed to spread from one computer to another. A virus operates by inserting or attaching itself to a legitimate program or document that supports macros in order to execute its code.
Answer:
Following are the code to the given question:
x= input()#defining a variable x that inputs value from the user-end
l = x.split(" ")#defining variable l that splits the x variable value with a space
t= int(l[len(l)- 1])#defining a variable t that decrease the l length and convert the value into integer
for i in range(1, (len(l) - 1)):#use for loop to calculate the range of the list
if int(l[i]) < t:#defining if block that checks the list value is lessthan t
print(l[i])#print list values
Output:
Please find the attached file.
Explanation:
In the above-given code, an "x" variable is declared that inputs the value from the user-end, and use the "l" variable that splits all the value and defined a "t" variable that adds value into the list and convert the value into an integer.
In the next step, for loop is declared that counts the lists and use a conditional statement that checks list value is less than t and use the print the method that prints the list values.