- myinput=myscreen.getstr() #reads in string from keyboard: "b r h9 1 1"
- entree = inner.split() #splits string by words
- if entree[0]=='b': #this works
- build(entree[1], entree[2], int(entree[3]), int(entree[4])) #***problem here with entree[2] it is not properly passing the list name h9?
- #this is suppose to be the equivalent of the following line
- build('r',h9,1,1) #this works
- #build uses the 2d list h9 i.e. print h9[0][1]
- Error: IndexError: string index out of range