From ff41e7655cd2612e9dfd24449620d27b7036db4a Mon Sep 17 00:00:00 2001 From: FRANKLINE ALELE AMBETSA <150971995+Frank2446-dotcom@users.noreply.github.com> Date: Sun, 12 Jan 2025 13:34:03 +0300 Subject: [PATCH] Delete solutions/convert_to_capital.py --- solutions/convert_to_capital.py | 39 --------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 solutions/convert_to_capital.py diff --git a/solutions/convert_to_capital.py b/solutions/convert_to_capital.py deleted file mode 100644 index 197f516ed..000000000 --- a/solutions/convert_to_capital.py +++ /dev/null @@ -1,39 +0,0 @@ -# !/usr/bin/env python3 -# -*- coding: utf-8 -*- - -""" -A module that converts letters to uppercase - -Created on 31 12 2024 - -@author: Kareiman Altayeb -""" - - -def convert_to_capital(user_text: str) -> str: - """Asks the user to enter a text and returns the text in capital - - Parameters: - user_text (str): The user input text to be converted to uppercase. - - Returns: - str : user_text in capital letters - - Raises: - AssertionError: If the input is empty or contains only spaces. - - Examples: - >>> convert_to_capital('hello') - 'HELLO' - >>> convert_to_capital('HelLo') - 'HELLO' - >>> convert_to_capital('123hello') - '123HELLO' - """ - - user_text = user_text.strip() - - if not user_text: - raise AssertionError("Entry cannot be empty or just spaces") - - return user_text.upper()