#Power Calculating Function.def Power (num,power): pro=1; for i in range(1,power+1): pro=pro*num; return pro #Now using this.print(Power(2,0)) print(Power(2,1)) print(Power(2,2)) print(Power(2,3)) print(Power(2,4))
Comments
Post a Comment