Complete the code to print the main role of an operating system.
print('An operating system helps manage [1] and resources.')
The operating system manages the computer's hardware and resources, like memory and CPU.
Complete the code to show what the OS provides to users.
print('The OS provides a [1] for users to interact with the computer.')
The operating system provides a user interface, like windows or command lines, to interact with the computer.
Fix the error in the code that describes OS managing tasks.
tasks = ['print', 'save', 'open'] for task in tasks: print('OS manages task:', [1])
Inside the loop, 'task' is the variable holding each item, so we print 'task'.
Fill both blanks to create a dictionary of OS functions and their descriptions.
os_functions = { 'memory': [1], 'process': [2] }The OS manages RAM under 'memory' and controls running programs under 'process'.
Fill all three blanks to complete the OS role summary dictionary comprehension.
os_summary = { func: desc for func, desc in [('file', [1]), ('security', [2]), ('interface', [3])] }The OS manages files, protects data for security, and provides the user interface.