Skip to content

This is a simple project developed in Python that converts my name that has been reversed and restores the word order with the first letter capitalized, thus displaying my original name.

License

Notifications You must be signed in to change notification settings

trelovodracir/my_real_name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Real Name - Python

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.

Description

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.

How it works

The code contains a function that:

  1. Receives a string with the words of a name reversed.

  2. Reverses the order of the words.

  3. Reverses each word individually and capitalizes the first letter.

  4. Returns the original name in the correct format.

Example

Run the code:

python3 main.py

Input:

nome_invertido = "Trelov Razec Odracir"

Output:

Meu nome é: Ricardo Cezar Volert

Requirements

This project was developed in WSL2 using Ubuntu 24.04.1 in Anaconda environment with Python 3.12.7.

Contribution

Contributions are welcome! If you have any suggestions or improvements for the project, feel free to fork it and send a pull request.

License

This project is licensed under the MIT License.

Star History

Star History Chart

About

This is a simple project developed in Python that converts my name that has been reversed and restores the word order with the first letter capitalized, thus displaying my original name.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages