"""
This test suite is designed to help you practice and improve your Python programming skills, particularly with loops, list comprehensions, and string manipulations. It contains 25 functions to implement, covering a range of difficulties from beginner to hard.
- Implement the functions in a separate Python file (e.g.,
solutions.py). - Copy the test class
TestLoopsAndShapesinto your test file (e.g.,test_solutions.py). - Run the tests using a test runner like
pytestor by runningpython -m unittest test_solutions.py.
- count_items(items)
- sum_numbers(numbers)
- find_largest(numbers)
- count_even_numbers(numbers)
- sum_digits(number)
- count_vowels(string)
- multiply_list_elements(numbers)
- create_number_triangle(n)
- fibonacci_sequence(n)
- remove_vowels(string)
- create_multiplication_table(n)
- count_character_frequency(string)
- reverse_words(sentence)
- spiral_matrix(n)
- pascal_triangle(n)
- longest_common_subsequence(str1, str2)
- count_inversions(arr)
- create_hollow_square(n)
- create_diamond(n)
- create_hourglass(n)
- create_spiral_string(n)
- create_alphabet_diamond(n)
- create_number_spiral(n)
- create_pyramid(n)
- create_number_triangle(n)
Good luck, and happy coding!