Binary to Words convertor.

                    Welcome Binary to Words convertor


                                     This is Binary to Words convertor.


print("Welcome to the Binary Convert to words!\n")
while True:
print("1. If you are intrested")
print("2. Exit")
choice = input("Enter your choice (1/2): ")


if choice == '1':
# Convert binary to words
binary_value = str(input("\nEnter your binary number: "))
byte_value = int(binary_value, 2).to_bytes((len(binary_value) + 7) // 8, byteorder='big')
words = byte_value.decode("utf-8")
print("\n😇 Your Words are = ", words, "\n")
print("You are again try this.")

elif choice == '2':
print("Koi Baat Nahi 😞")
break
else:
print("Invalid choice! Please enter 1, 2 .")
print("\n\n 😇😇😇 Your task complete")

Comments

Popular posts from this blog

Screen Recording using python.

wallpaper changer.

Find any color from image using python