1. Given an input number n, write a program to calculate the sum of digits of the number of 2 raised to the power n. Print -1 if n<=0.
1. Given an input number n, write a program to calculate the sum of digits of the number of 2 raised to the power n. Print -1 if n<=0.Continue reading on Medium » Read More Python on Medium
#python