Skip to content

Commit 57f7044

Browse files
Fix to meaningful name
1 parent 05f854f commit 57f7044

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

perfect_square.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

power_of_two.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Simple and efficient python program to check whether a number is series of power of two
2+
# Example:
3+
# Input:
4+
# 8
5+
# Output:
6+
# It comes in power series of 2
7+
a = int(input("Enter a number"))
8+
if a & (a - 1) == 0:
9+
print("It comes in power series of 2")
10+
else:
11+
print("It does not come in power series of 2")

0 commit comments

Comments
 (0)