WGUlD522lFinallExamlGuidel(NewlUpdate)
lPythonlforlITlAutomation|lQsl&lAs|l100%l
Correct|lGradelAl(VerifiedlAnswers)
QUESTION
(f-strings)
Answer:
standslforlformat.lReplaceslthelnameloflanylvariablelinlbraceslwithlitslvalue.
QUESTION
\n
\t
Answer:
newlline
newltab
QUESTION
stringlslicing
Answer:
refersltoltheltechniqueloflextractinglalportionloflalstringlbylspecifyinglalrangeloflindices
start,lstop,landlstep
QUESTION
stringl[start:stop:step]
,Answer:
startlislwherelslicinglbegins
-iflnotlprovidedldefaultltolbeginningloflstring
stoplislwherelslicinglends
-liflnotlprovidedldefaultltolendloflstring
steplorlstridelbetweenlcharacters
-liflnotlprovidedldefaultltol1
QUESTION
immutable
Answer:
cannotlbelchanged
QUESTION
mutable
Answer:
canlbelchanged
QUESTION
youlcanlmodifylstringslwith
Answer:
replacel()
upperl()
lowerl()
,QUESTION
countl()
Answer:
countsltheloccurrencesloflalsubstringlinlthelgivenlstring
QUESTION
stripl()
Answer:
removeslleadinglandltrailinglwhitespaces
QUESTION
lstripl()
Answer:
removeslleadinglwhitelspaces
QUESTION
rstripl()
Answer:
removesltrailinglwhitepsaces
QUESTION
+=
, Answer:
shorthandlforlconcatenationlandlassignment
QUESTION
greetingl=l"Hellol"
greetingl=+l"Python!"
printl(greeting)
Answer:
HellolPython
QUESTION
joinl()
Answer:
combinelstringslfromlanliterablel(list)
QUESTION
positionallarguments
Answer:
argumentslthatlarelpassedltolalfunctionlorlmethodlinlalspecificlorder.
QUESTION
namedlarguments
Answer:
keywordlarguments,lpassedltolalfunctionlorlmethodlbylexplicitlylstatinglthelnameloflthelparame
terlandlitslvalue.
lPythonlforlITlAutomation|lQsl&lAs|l100%l
Correct|lGradelAl(VerifiedlAnswers)
QUESTION
(f-strings)
Answer:
standslforlformat.lReplaceslthelnameloflanylvariablelinlbraceslwithlitslvalue.
QUESTION
\n
\t
Answer:
newlline
newltab
QUESTION
stringlslicing
Answer:
refersltoltheltechniqueloflextractinglalportionloflalstringlbylspecifyinglalrangeloflindices
start,lstop,landlstep
QUESTION
stringl[start:stop:step]
,Answer:
startlislwherelslicinglbegins
-iflnotlprovidedldefaultltolbeginningloflstring
stoplislwherelslicinglends
-liflnotlprovidedldefaultltolendloflstring
steplorlstridelbetweenlcharacters
-liflnotlprovidedldefaultltol1
QUESTION
immutable
Answer:
cannotlbelchanged
QUESTION
mutable
Answer:
canlbelchanged
QUESTION
youlcanlmodifylstringslwith
Answer:
replacel()
upperl()
lowerl()
,QUESTION
countl()
Answer:
countsltheloccurrencesloflalsubstringlinlthelgivenlstring
QUESTION
stripl()
Answer:
removeslleadinglandltrailinglwhitespaces
QUESTION
lstripl()
Answer:
removeslleadinglwhitelspaces
QUESTION
rstripl()
Answer:
removesltrailinglwhitepsaces
QUESTION
+=
, Answer:
shorthandlforlconcatenationlandlassignment
QUESTION
greetingl=l"Hellol"
greetingl=+l"Python!"
printl(greeting)
Answer:
HellolPython
QUESTION
joinl()
Answer:
combinelstringslfromlanliterablel(list)
QUESTION
positionallarguments
Answer:
argumentslthatlarelpassedltolalfunctionlorlmethodlinlalspecificlorder.
QUESTION
namedlarguments
Answer:
keywordlarguments,lpassedltolalfunctionlorlmethodlbylexplicitlylstatinglthelnameloflthelparame
terlandlitslvalue.