Program 1
a= int (input(“Give me the number that will be powered: “))
b= int (input(“The power: “))
def superpower (a,b):
c=a**b
return c
print(“The result is”, superpower(a,b))
Program 2
a= int(input(“Numbers of stars you want: “))
def stars (a):
print(“*”*a)
return “”
print(stars(a))
Quiz 2 by alextenablog is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.