Automate Cybersecurity Tasks with Python | Weekly challenge 1 Quiz |
You have written the following code:
if operating_system == "OS 3": print("Updates needed")
You want to add to it so that it will print a “No updates needed” message whenever the value of operating_system is not “OS 3”. Which lines of code have the correct syntax to do this?
- else
print(“No updates needed”)
- else operating_system != “OS 3”:
print(“No updates needed”)
- elif operating_system == “OS 3”:
print(“No updates needed”)
- else:
print(“No updates needed”)