codecs.decode() in Python Last Updated : 26 Mar, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report With the help of codecs.decode() method, we can decode the binary string into normal form by using codecs.decode() method. Syntax : codecs.decode(b_string) Return : Return the decoded string. Example #1 : In this example we can see that by using codecs.decode() method, we are able to get the decoded string which can be in binary form by using this method. Python3 1=1 # import codecs import codecs s = b'GeeksForGeeks' # Using codecs.decode() method gfg = codecs.decode(s) print(gfg) Output : GeeksForGeeks Example #2 : Python3 1=1 # import codecs import codecs s = b'I love python.' # Using codecs.decode() method gfg = codecs.decode(s) print(gfg) Output : I love python. Comment More infoAdvertise with us Next Article codecs.decode() in Python J jitender_1998 Follow Improve Article Tags : Python Python codecs-module Practice Tags : python Similar Reads base64.decodebytes(s) in Python With the help of base64.decodebytes(s) method, we can decode the binary string with the help of base64 data into normal form. Syntax : base64.decodebytes(b_string) Return : Return the decoded string. Example #1 : In this example we can see that by using base64.decodebytes(s) method, we are able to g 1 min read Cryptophasia Code in Python Cryptophasia is a language that is created and spoken between twins before they learn their own mother tongue. Since no one knows that language, it still remains a secret. As humans never left a stone unturned, Scientists have found that this language is created, just by mispronouncing the existing 3 min read Elias Delta Encoding in Python In this article, we are going to implement Elias Delta encoding using python.Syntax:Elias Delta Encoding(X)= Elias Gamma encoding (1+floor(log2(X))) + Binary representation of X without MSB. ImplementationFirst, we are going to implement Elias delta Encoding, Before writing code for Elias Delta Enco 3 min read base64.decodestring(s) in Python With the help of base64.decodestring(s) method, we can decode the binary string with the help of base64 data into normal form. Syntax : base64.decodestring(b_string) Return : Return the decoded string. Example #1 : In this example we can see that by using base64.decodestring(s) method, we are able t 1 min read Python | os.fsdecode() method OS module in Python provides functions for interacting with the operating system. OS comes under Pythonâs standard utility modules. This module provides a portable way of using operating system dependent functionality. os.fsdecode() method in Python is used to decode the specified filename from the 1 min read Like