Question: In python please Write a Python program that takes a command-line argument n and writes all the positive powers of 2 less than or equal
In python please
Write a Python program that takes a command-line argument n and writes all the positive powers of 2 less than or equal to n. Make sure that your program works properly for all values of n. Your program should write nothing if n is negative or zero. Example: Enter n: 10 1,4,9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
