Generation

testsFri, 30 Jun 2023

string = input ( " Введите фамилии aбитуриентов, разделённые пробелами:") surnames = string. split() count = 0 for surname in surnemes: if surname[0]. isupper(): count += 1 percentage = ( count / len(surnames))* 100 print ("{:.1f}".format(percentage))

import unittest class TestSurname(unittest.TestCase): def test_surname(self): self.assertEqual(surname[0], 3)

Want to kickstart your project?Use the new AI Studio to create your code