From 9bcc8896a75d5dc52a96b99dc3af8d43255534d6 Mon Sep 17 00:00:00 2001 From: Eruptedlava Date: Wed, 15 Sep 2021 21:02:29 +0530 Subject: [PATCH] added new file --- pbin-advanced.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pbin-advanced.py diff --git a/pbin-advanced.py b/pbin-advanced.py new file mode 100644 index 0000000..365a99e --- /dev/null +++ b/pbin-advanced.py @@ -0,0 +1,21 @@ + +print("\n\n\tPoint to be noted:-\n\tDont use spaces in the text it will show error use underscore ( _ ) instead") + +l = [] +text = input("\n\n\n\tEnter the text here : ") +for character in text: + l.append(ord(character)) + + +nl = [] +for num in l: + + nl.append(bin(num)) + +final = " ".join(nl) + + +print(f"\n\n\nHere is your Binary code : {final} \n\n\n") +print("For Linux users:- To coppy the code just press ctrl + shift + c") +print("For Windows users:- To coppy the code just press ctrl + c") +print("\nMade By @Eruptedlava\n")