Remove an Item from a Python List (pop, remove, del, clear)
Learn how to remove an item from a Python list, using the pop, remove, and del methods. Also learn how to clear an entire list.
Learn how to remove an item from a Python list, using the pop, remove, and del methods. Also learn how to clear an entire list.
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 to use Python to calculate e, or the Euler’s number, using the math library, including the exp function to calculate from scratch.
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 return multiple values from your functions, using tuples, lists, and dictionaries to understand function outputs.
Learn how to use Python for exponentiation, meaning how to raise numbers to a give power, including how to use operators and math.
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 number including how to use reverse integers and how to reverse floats in with a custom function.
Learn how to use Python to reverse a list, including how to use the reversed function, list indexing, and a python list comprehension.
Learn to use Python to lowercase text, using the lower and caseload functions, checking if strings are lower and converting lists to lower.