![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Say I have string = "hello", and I then run n = string.find(h). What will the value of n be? What would be the value of n if i did string.find(z)? So what I am asking is what happens when JES can not find what you are looking for in a String? -Albert d'Heurle |
| <> means not equal -Albert d'Heurle |
| For the test, know that \n represents a new line. \b is unimportant. -Blake O'Hare |
| The 2nd part is calling a function to make the original source all lower-case letters. Amanda Bennett |
| No. Amanda Bennett |
| No. Recognize what the for loop does. Amanda Bennett |
| Not quite. Amanda Bennett |
| Not quite. If the location is -1, does it return out of the function then? Amanda Bennett |
| See above. Amanda Bennett |
| No. Remember, there's a for loop there. It will go through each vowel. i in this case is not a string...it's a variable Amanda Bennett |
| No, but you do need to do it for the other vowels... Amanda Bennett |
| It prints out the string without a letter (source = source...). loc=source.find(i) will find the location of whatever vowel you're on in the for loop. Amanda Bennett |
| excellent Amanda Bennett |
| It's going to look for each letter continuously until there are no more in the function. Once it finds the letter, the function effectively removes that letter from the string. Amanda Bennett |
| Close. what does source.lower() do though? Don't forget that. Amanda Bennett |
| it could be a number of different things. you need to make sure that you copied it in correctly and that the code is exactly the same. -poof #10 |