class BasketballPlayer:which keyword is used to indicate "no body"?
def remove_vowels(input_string): orig = input_string.lower( ) processed = '' for c in orig: if c != 'a' and c != 'e' and \ c != 'i' and c != 'o' and \ c != 'u': processed += c return processed
from removevowels import remove_vowels print(remove_vowels("elephant")) # Output: lphnt
def __str__(self): return f'{self.name'} {self.animal_type} ' + \ f'{self.is_vaccinated( )}'Here is the test2.py unit test module:
from pet import Pet import unittest class MyUnitTestClass(unittest.TestCase): def test_1(self): p = Pet("Lassie", "Dog") self.assertEqual(str(p), "Lassie Dog No") self.assertEqual(p.name, "Lassie") self.assertEqual(p.animal_type, "Dog") self.assertEqual(p.is_vaccinated( ), "No") p.vaccinate( ) self.assertEqual(p.is_vaccinated( ), "Yes") if __name__ == '__main__': unittest.main( )
days_in_month = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]