Learn how to use Python to sort a string including how to sort strings using the sorted function, with case sensitivity or insensitivity.
In this tutorial, you’ll learn how to use Python’s zfill method to pad a string with leadering zeroes. You’ll learn how the method works and how to zero pad a string and a number. You’ll also learn how to use… Read More »Python zfill & rjust: Pad a String in Python
Learn how to use Python to convert int to binary (integer to binary strings) using the format and bin functions, and string formatting.
Use the Python rfind method to find the last, or right-most, index of a substring in a Python string, including the difference to rindex.
Learn how to implement Python SHA256 using the hashlib module, including working with unicode strings, files, and Pandas Dataframes.
Learn how to use Python to truncate a float using the int function, math library, string functions, f-strings, and truncate lists of numbers.
Learn how to use the Python isdigit, isnumeric, and isdecimal methods to check whether or not a string is a number and their differences.
Learn how to use Python to remove special characters from a string, including how to do this using regular expressions and isalnum.
Learn how to use Python to reverse a string. Learn how to use 6 ways, including developing a custom function to make your code more readable.
Learn to use Python to lowercase text, using the lower and caseload functions, checking if strings are lower and converting lists to lower.
Learn how to use Python and Pandas to convert a dataframe column values to strings, including how to optimize for memory and efficiency.
Learn how to use Python to shuffle a list, including being able to reproduce a given result and shuffling Python lists of lists.