Skip to content

Commit c76e1ce

Browse files
authored
Update Decimal_to_binary.py
comments are added
1 parent e5ad993 commit c76e1ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: Decimal_to_binary.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
n=int(input())
2-
print(bin(n)[2:])#it convert the Decimal to binary
2+
print(bin(n)[2:])# Decimal to binary by using bin()
3+
4+
5+
#e.g
6+
n = 5
7+
101

0 commit comments

Comments
 (0)