RARita Arosemena Perezincodingyourself.com·May 18, 2021 · 1 min readCommon String Methods [Python]course = "Python Programming" course.upper() # Returns a string uppercase course.lower() # Converts a string to lowercase course.title() # Returns a string with the first character # in uppercase course.strip() # Removes white spaces from both t...00
RARita Arosemena Perezincodingyourself.com·May 18, 2021 · 1 min readCommon mistakes among beginning programmersUsing mystical names for variables, such as p1 or xyz_1. If someone else reads your code, they won't have a clue of what you're talking about! Mixing two words or more in a variable, e.g., coursename. Underscores help you make your code more readab...00
RARita Arosemena Perezincodingyourself.com·May 14, 2021 · 1 min read7 Phases of Machine LearningMachine Learning has so many applications in daily life, and it's going to be crucial for humanity in the next few decades. But how does it work exactly? Steps of Machine Learning Import the data. Generally, you will need .csv files with data enoug...00
RARita Arosemena Perezincodingyourself.com·May 12, 2021 · 2 min readWhat are Modules in Python?Modules are pieces of code that others have written to fulfill common tasks, such as performing mathematical operations. A good example is math module, which you can import as follows: import math print(math.sqrt(25)) #sqrt means "square root" Anoth...00
RARita Arosemena Perezincodingyourself.com·May 11, 2021 · 1 min readDifference between Comments and DocstringsComments are annotations used to help others understand your code. They don't affect how a program is run. In Python, a comment can be created by inserting an "#", also known as a number sign or hash symbol. The text after it on a line will be ignor...00