Question: 1 0 : Introduction to Programming ( Python ) home > 3 . 2 : List basics List states _ list is created with four
: Introduction to Programming Python home : List basics
List stateslist is created with four states read from input. Using list methods, initialize:
indexvar with the index of the element 'Washington' in stateslist.
lenvar with the length of stateslist.
grad Click here to show example
Ex: If the input is:
Washington
Montana
Minnesota
Kansas
then the output is
Washington is found at index of Washington 'Montana', 'Minnesota', 'Kansas'
List length:
# Reads four values from input into stateslist
stateslist input input input input
Your code goes here
printfWashington is found at index indexvar of stateslist
printfList length: lenvar
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
