by Suf | Jan 3, 2022 | Machine Learning, Programming, Python
This article will go through the sigmoid function formula, sigmoid function as an activation function, the ways to implement the sigmoid function in Python, and a brief history of the origins and applications of the sigmoid function. After reading through this...
by Suf | Jan 2, 2022 | Programming, Python
In Python, we can multiply a string by a numerical value, and this operation will duplicate the string by an amount equal to the numerical value. We can only use integers to multiply strings, not floating-point values. Floating points are decimal point numbers; you...
by Suf | Jan 2, 2022 | Programming, Python, Tips
Python provides support for arithmetic operations between numerical values with arithmetic operators. Suppose we try to perform certain operations between a string and an integer value, for example, concatenation +. In that case, we will raise the error:...
by Suf | Dec 31, 2021 | Programming, Python, Tips
The built-in data type List stores multiple items in a single variable. You can create lists using square brackets []. If you have two lists and you want to concatenate them, there are several methods you can use to do so. This tutorial will go through six of the...
by Suf | Dec 30, 2021 | NLP, Programming, Python, Tips
In Python, we can use built-in functions to manipulate strings. For example, we may want to capitalize the first characters in a name for form entry. The upper() function is helpful for converting all case-based characters in a string to uppercase. We can use the...
by Suf | Dec 29, 2021 | Programming, Python, Tips
This tutorial will go through how to compare strings in Python with the help of code examples. Python String Refresher A string is a Python data type. A string is a list of characters in Unicode representation. Python deals with a string as an array of characters....