The first part consisted of writing a function called superpower that recieves two parameters from the user and returns an integer that is the result of the first parameter raised to the power of the second. I couldn’t use the ** operator and must use a loop. Last time I used a while loop instead of a for loop.

https://github.com/CarminaP/Quiz6/blob/master/p1.py

On the second part I had to write a function that recieves one parameter, which is the number of stars the function should print. The tricky part was that it must be on a single line. I used a for loop like last time.

https://github.com/CarminaP/Quiz6/blob/master/p2.py

CC BY 4.0 Quiz 6 by carminaperezguerrero is licensed under a Creative Commons Attribution 4.0 International License.