Question: Example: Write a one - line Python statement declaring a string storing a campaign slogan. slogan = Guidoin 2 0 2 4 ! ( a
Example: Write a oneline Python statement declaring a string storing a campaign slogan.
slogan Guidoin
a points Write a oneline Python statement creating and initializing a list of exam grades
containing the numbers and
b points Use list comprehension to write a oneline Python statement creating and
initializing to all zeros a d array list to store daily temperatures for one nonleap year.
c points Write a oneline Python statement creating a d array roll list of lists that
will be used in a game program to store the results of rolling two dice on each turn and
initializing it to store these three rolls: then then
d points Write one or more Python statements to print out all the values of the temper
ature list defined in part b assuming that it has been populated with nonzero data since
its initialization.
e points Write one or more Python statements to grab the "extension" ie all char
acters after the last from str variable filename and store the result in the str named
extension. Assume filename contains a and both strings have been created and assigned.
f points Write one or more Python statements to go through a slogan stored in slogan,
like the one in the Example above and print "digit" for each character between and
Problem PQ Code Analysis. Fill in the values for the listsvariables indicated after the
corresponding code has run.
You must enter your final answers into the boxes provided below to receive credit.
Feel free to use the area outside the boxes for preliminary calculations. Be careful!
a
b points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
