<jupyter_start><jupyter_text><jupyter_code>def dec_to_binary(n):
	bits = []
	
	while n > 0:
		bits.append(n%2)
		n = n // 2
	bits.reverse()
	
	binary = ''
	for bit in bits:
		binary += str(bit)
	return binary


num = int(input("Your decimal number: "))
binary = dec_to_binary(num)
print("Your binary is:", binary)<jupyter_output>Your decimal number: 5
Your binary is: 101
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.018867924528301886, 'mean_word_length': 4.314285714285714, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '105721', 'license': 'MIT', 'n_tokens_mistral': 158, 'n_tokens_neox': 142, 'n_words': 37, 'path': 'binary_to_decimal.ipynb', 'repo_name': 'aditya270520/100Daysofpython', 'size': '371'}