Demo entry 3409478

trying

   

Submitted by ziv on Dec 23, 2015 at 19:07
Language: HTML. Code size: 556 Bytes.

from os import system
sevenlayers=False
def f(n):
    t=raw_input("layer %s is > "%n).lower()
    return t
 
while(sevenlayers==False):
    system("cls")
    n=1
    a=f(n)
    if(a=="physical"):
        n+=1
        if f(n)=="data link":
            n+=1
            if f(n)=="network":
                n+=1
                if f(n)=="transport":
                    n+=1
                    if f(n)=="application":
                        sevenlayers=True
 
 
system("cls")
system("color 2")
print("Well Done\n\n")
system("pause")

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).