Jump to content

[Offer] Understanding Cisco Network Automation Essentials — 16 CE credits FREE from C1sco U


martek

Recommended Posts

  • 3 weeks later...
On 8/22/2023 at 11:20 AM, martek said:

2 more Qs:

Question 23.

A module that is named inventory has a variable that is called devices. After successfully importing the module using import inventory, what is the proper syntax to print the contents of the variable?

 a)   print(devices)

 b)   print(inventory.devices())

 c)   print(inventory["devices"])

 d)  print(inventory.devices)

 

Question 24

A variable of a dictionary data type named inventory has the following value: {"csr1kv1":{"vendor":"cisco"}}. Which Python command will print the value of the "vendor" key?

 a.   print(inventory ["vendor"])

 b.  print(inventory [0]["vendor"])

 c.  print(inventory ["csr1kv1"]["vendor"])

 d.  print(inventory ["csr1kv1"])

does anyone have the answer 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...
On 3/6/2024 at 3:19 PM, dlewis7780 said:

Just finished this course. Passed all 3 assessment tests. 16 CE credits were applied immediately after passing the course. It did take a couple of attempts, but nothing too crazy 👍

Hi

Have you used the answers shared here? I am think to go got it

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...