This is a simple project developed in Python that reverses my reversed name and restores the word order with the first letter capitalized, thus displaying my original name.
The main function of this project, inverter_nome
, receives a string with reversed words of a name and arranges them correctly. The function also capitalizes the first letter of each word. This project aims to demonstrate how to manipulate strings in Python and the importance of using good coding practices.
The code contains a function that:
-
Receives a string with the words of a name reversed.
-
Reverses the order of the words.
-
Reverses each word individually and capitalizes the first letter.
-
Returns the original name in the correct format.
Run the code:
python3 main.py
Input:
nome_invertido = "Trelov Razec Odracir"
Output:
Meu nome é: Ricardo Cezar Volert
This project was developed in WSL2 using Ubuntu 24.04.1 in Anaconda environment with Python 3.12.7.
Contributions are welcome! If you have any suggestions or improvements for the project, feel free to fork it and send a pull request.
This project is licensed under the MIT License.