Complete the code to print the industry where computing helps manage patient records.
industry = "[1]" print(f"Computing is used in the {industry} industry.")
Healthcare uses computing to manage patient records efficiently.
Complete the code to show which industry uses computing for weather forecasting.
industry = "[1]" print(f"Computing helps in the {industry} industry for weather forecasting.")
Meteorology uses computing to analyze weather data and forecast conditions.
Fix the error in the code to correctly assign the industry that uses computing for online shopping.
industry = [1] print(f"Computing supports the {industry} industry for online shopping.")
The industry name must be a string, so it needs quotes around it.
Fill both blanks to create a dictionary showing industries and their computing uses.
computing_uses = {"healthcare": "[1]", "finance": "[2]"}
print(computing_uses)Healthcare uses computing for patient records, finance for online transactions.
Fill all three blanks to create a dictionary comprehension filtering industries with computing uses longer than 10 characters.
industries = {"healthcare": "patient records", "finance": "online transactions", "agriculture": "crop monitoring"}
filtered = {k: v for k, v in industries.items() if len(v) [1] [2] and k != [3]
print(filtered)The code filters uses longer than 10 characters and excludes agriculture.