Webinar on Python for Network Engineers [Issue 10]
The recording of this webinar.
If you don't want to miss any of our webinars, click here to subscribe to the notifications!
QUESTION 1.(single choice)
Which one of the below variable is a LIST?
a) x= ("router", "switch", "firewall")
b) x= {"router": "NE40E", "switch": "S9300", "firewall": "Eudemon"}
c) x= ["router", "switch", "firewall"]
d) x= {"router", "switch", "firewall"}
Answer: C
QUESTION 2.(single choice)
You have a variable x as string. There are 5 underline between words. Need to change it with whitespace.
x = "Python_is_a_good_scripting_language"
….. # The code you must write
print (x) # Output: Python is a good scripting language,
a) x= x.replace ("_","")
b) x= x.replace ("_"," ")
c) x= x.split ("_"," ")
d) x= x.add ("_"," ")
Answer: B
QUESTION 3.(single choice)
Find the digits as number and write as list for x string.
import re
x="Manchester United founded in 1878"
….. # The code you must write
print(x) # Output: ['1878‘]
a) x = re.search ("\d+", x)
b) x = re.findall ("\d", x)
c) x = re.findall ("\d+", x)
d) x = re.findall ("\D", x)
Answer: C
Winner | Reward |
user_3910635 | $20 Amzon.com Gift Card |
navt | $20 Amzon.com Gift Card |
alexfporto | $20 Amzon.com Gift Card |
DKetrari | $20 Amzon.com Gift Card |
ZohaibAnwar | $20 Amzon.com Gift Card |
Vasileios_Fragkos | $20 Amzon.com Gift Card |
vera1234 | $20 Amzon.com Gift Card |
sam_san | $20 Amzon.com Gift Card |
Umar_210260 | $20 Amzon.com Gift Card |
pSpilo | $20 Amzon.com Gift Card |
The recording of this webinar.






![[Issue 10] Live Webinar: Python for Network Engineers——28/07/2020-3373701-1](static/image/smiley/default/biggrin.gif)

![[Issue 10] Live Webinar: Python for Network Engineers——28/07/2020-3374507-1](static/image/smiley/default/victory.gif)
