Money and Businesszipfile to compress and uncompress ZIP files in Python The zipfile module of the Python standard library can be used to compress files into ZIPs and uncompress ZIP files. It i...04.02.2022Money and Business
Money and BusinessGetting the image size (width and height) with Python, OpenCV and Pillow(PIL) In Python there are several libraries for handling images, such as OpenCV and Pillow (PIL). This section explains how to...04.02.2022Money and Business
Money and BusinessGetting the size of a file or directory (folder) in Python Using the Python standard library os, you can get the size (capacity) of a file or the total size of the files contained...04.02.2022Money and Business
Money and BusinessCompressing a directory (folder) into a zip or tar in Python When compressing an entire directory (folder) into a zip file in Python, you can use os.scandir() or os.listdir() to cre...04.02.2022Money and Business
Money and BusinessIgnoring (disabling) escape sequences in Python with raw strings '...', "..."In Python, if you prefix these string literals with one of the following characters, the value will ...03.02.2022Money and Business
Money and BusinessGet the day of the week or month from a date in Python as a string (e.g. German or English) Using Python's standard library datetime, you can create a datetime object from a date string and get the name of th...03.02.2022Money and Business
Money and BusinessRemoving elements from a list (array) in Python: clear(), pop(), remove(), del To remove an element from a list (array) of type list in Python, use the list methods clear(), pop() and remove(). You c...03.02.2022Money and Business
Money and BusinessAdding elements to a list (array) in Python: append(), extend(), insert() To add an element to a list (array) of type list in Python, or to combine another list, use the list methods append(), e...03.02.2022Money and Business
Money and BusinessShuffle elements in a list in Python If you want to shuffle (randomly sort) the elements of a list (array) in Python, use the random module of the standard l...01.02.2022Money and Business
Money and BusinessGenerating random decimals and integers in Python, including random(), randrange(), and randint() Random numbers can be generated using the random(), uniform(), randange(), and randint() functions in the random module ...31.01.2022Money and Business