Αποτελέσματα Αναζήτησης
7.6.8: What's in a Name? Cannot retrieve latest commit at this time. History. Code. Blame. 10 lines (9 loc) · 211 Bytes. name = "Thelas" letter = "e" def name_contains (name, letter): name.find (letter) if name.find (letter) !=-1: return True else: return False print (name_contains (name, letter)) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.
- 7.6.8 Vowels in First Name.py
String Methods/7.6.8 Vowels in First Name.py at master ·...
- 7.6.8 Vowels in First Name.py
Return Value from find () method. The find () method returns an integer value: If the substring exists inside the string, it returns the index of the first occurence of the substring. If substring doesn't exist inside the string, it returns -1. print (name_contains ("bob", "b")) here's the answer. Can someone leave the code I still don’t get it.
String Methods/7.6.8 Vowels in First Name.py at master · emrgem/CodeHS-Intro_To_Computer_Science-Answers-Python An answer key to the Intro to Computer Science in Python. - emrgem/CodeHS-Intro_To_Computer_Science-Answers-Python
def name_contains(): # your code here. name_contains('samantha', 'a') name_contains('ethan', 's')
Just figured it out, right after the function definition, you have to insert: find_vowels = find_vowels.lower() before you evaluate for any vowels. 1. Reply. Share. I need help on 7.6.8 Vowels in First Name. This code doesn't meet all the requirements.
Example 6.5.4 Enter Name and Age. Exercise 6.5.5 Temperature Converter, Part 2. Exercise 6.5.6 Enter a Positive Number. ... Practice 7.6.8 What's in a Name? Practice 7.6.9 Part 1, Remove All From String. Exercise 7.6.10 Part 2, Remove All From String. Survey 7.6.11 Mindset Survey 3. 7.7 Strings Quiz.
Soliloquy Analysis. Read Shakespeare’s ‘What’s in a name?’ soliloquy from Romeo and Juliet below with modern English translation and analysis, plus a video performance. ‘What’s In A Name?’. Spoken by Juliet, Act 2 Scene 2. “What’s in a name? That which we call a rose. By any other name would smell as sweet.” ‘What’s In A Name’ Quote Translation.