I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Display names

Enter the code below. Make the following changes –

  • Add two more names to the list.
  • Add the code print(myList[2] + “likes pizza”)
  • Print out the person in position 4 of your list. Say that they like curry.
  • Pick one other person from the list. Say that they like salad.
myList = ["Bob", "Sally", "Fred", "Sue"]
print(myList[1] + "likes cheese")


You need to log in or create an account to submit code!

Comments are closed.

Information