So friends, here is the validation challenge pretty much. What I want you to do
is to walk through
some basic Python concepts and to make things as accessible as possible, what I
will do is recommend
we do this in an online Python interpreter. So what you can do here is if you
go to your browser,
if you search for online Python interpreter, you can click this link here and
what this actually
gives you as you can see right here at the top, it gives you access to the
Python programming language.
Let me just delete all this right here. Say for example, I create a variable
called name and I just WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
called name and I just
say the value is equal to John and I just say print out the name. If I choose
to run this,
we can see here at the bottom, but actually print to get the name of this
variable. So this here
is where you can write some Python code and then just run it to test it. Now
the actual code I want
you to attempt to write is this stuff right here. I want you to create a list
that is comprised of
four elements. Now these elements should use the following string values, OSPF,
EIGRP, BGP and RIP.
Now once you've done that, I want you to use a for loop to iterate through and WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Now once you've done that, I want you to use a for loop to iterate through and
print each element
within the list. So basically you can print it OSPF, then EIGRP, then BGP, then
RIP. Now once you've
done this, I want you to modify the logic to include a single conditional check
. So one if statement
don't need to worry about an LF or an else, just a single if statement. And
with that if statement,
I want you to test that if the string BGP is within the list, I want you to
then print out the
statement that is an exterior gateway protocol available. So without your WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
statement that is an exterior gateway protocol available. So without your
browser, give it a
think and I will see you in the very next video where we discuss the solution.