Renan Moura

Renan Moura

I'm a Software Engineer working in the industry for a decade now. I like to solve problems with as little code as possible. I’m interested in solving all sorts of problems with technology in creative and innovative ways. From everyday shell scripts to machine learning models. I write about Software Development, Machine Learning, and Career in tech.

String Uppercase in Python

how to python

Use the upper() method to transform a whole string into uppercase. regular_text = "This is a regular text." upper_case_text = regular_text.upper() print(regular_text) #This is a regular text. print(upper_case_text) #THIS IS A REGULAR TEXT. Notice that the original regular_text variable remains…

String Lowercase in Python

how to

Use the lower() method to transform a whole string into lowercase. regular_text = "This is a Regular TEXT." lower_case_text = regular_text.lower() print(regular_text) #This is a Regular TEXT. print(lower_case_text) #this is a regular text. Notice that the original regular_text variable remains…

Multiline Strings in Python

how to

Triple Quotes To handle multiline strings in Python you use triple quotes, either single or double. This first example uses double quotes. long_text = """This is a multiline, a long string with lots of text, I'm wrapping it in triple…

for Loops in Python

spiral stairs

Loops are used when you need to repeat a block of code a certain number of times or apply the same logic over each item in a collection. There are two types of loops: for and while. In this article,…