Skip to content

Commit 7800236

Browse files
authored
Create Ques7.py
1 parent 716a8eb commit 7800236

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Ques7.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#Convert decimal to binary
2+
number = int(input('Enter a number: '))
3+
print(bin(number)[2:])

0 commit comments

Comments
 (0)