grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def print_grades(grades_input): for grade in grades_input: print grade def grades_sum(scores): total = 0 for score in scores: total += score return total def grades_average(grades_input): sum_of_grades = grades_sum(grades_input) average = sum_of_grades / float(len(grades_input)) return average def grades_variance(scores): average..
Cisco switch automatically pick up highest speed and duplex In switch, show int f 0/1 FastEthernet0/1 is up, //means physical port Line protocol is up //means logical port FastEthernet Slot#/Port#F 0/1 means slot 0 and port 1. Most switch have only 1 slot. When it comes to modular switch or router
telnet port 23, set line vty 5 15 password to connect remotely line vty 0 15 // this swtich have 16 vty port(0 to 15) password suces telnet 10.1.1.2 connect a switch remotely using connected router unless set enable password on switch, telnet can’t configure anything enable secret CCNA // set enable password as “CCNA” line vty 0 15 privilege level 15 //set highest level to telnet user so no need..
Public IP address (WAN)class a: 0.0.0.0 - 127.255.255.255class b: 128.0.0.0 - 191.255.255.255class c: 192.0.0.0 - 223.255.255.255 Private IP address (LAN)class a: 10.0.0 - 10.255.255.255class b: 172.16.0.0 -172.31.255.255class c: 192.168.0.0 - 192.168.255.255
count = 0 while count = 10: break // from random import randint # Generates a number from 1 through 10 inclusive random_number = randint(1, 10) guesses_left = 3 # Start your game! while guesses_left > 0: guess = int(raw_input("Your guess: ")) if guess == random_number: print "Yo..
esd file contain more than one version of windows, wim file contain only single version. Open command prompt and run as administrator locate esd file and type dism /Get-WimInfo /WimFile:install.esdThe list of windows version will come up. than, type command below with modified index number. in this case, I"m extracting Windows 10 Pro.caution: when there are already install.wim file at the same d..
switchport mode accessswitchport port-security show cdp neighborhood ##Switch port-security switchport mode accessswitchport port-security #Enable port securitySwitch(config-if)#switchport port-security ? mac-address #Secure mac address maximum #Max secure addressesviolation #Security violation modeSwitch(config-if)#switchport port-security mac-address ? H.H.H #48 bit mac address #Put Mac addres..