Question: Simple Python string indexing list assignment. At least it should be but, I'm having issues and looking to compare coding to figure out where I'm
Simple Python string indexing list assignment. At least it should be but, I'm having issues and looking to compare coding to figure out where I'm going wrong. Thank you in advance! :) def my_classmates(): """ My classmates and where they are from You should know some of your classmates in CSC131. In this function, first create a list of at least 3 of your classmates' names and their hometown. Then use a loop to print the information out like: Mark is from New Bern, NC. Feli is from Montana There is no explicit return value for this function. Please remove the sample values in the classmates list before adding your classmates' info. eg: classmates = ["Mark", "New Bern, NC", "Feli", "Montana"] """ classmates = ["Mary", "Wilmington, NC", "John", "New Jersey", "Ralph", "SC"] #test my_classmates()

def my_classmates): My classmates and vhere they are from You should knor some of your classmates in CSC131. In this function, first create a list of at least 3 of your classmates' names and their hometovn. Then use a loop to print the information out like: Mark is from New Bern, NC. Feli is from Montana 10 There is no explicit return value for this function. Please remove the sample values in the classmates list before adding your classmates' info. eg: classmates ["Mark ", "Nev Bern, NC", "Feli", "Montana "] 12 13 14 15 16 17 18 19 20 classmates ["Mary", "Wilmington, NC", "John", "New Jersey", "Ralph", "SC"] = #test my classmates ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
