#QUIZ02

Type in an integer and then raise it to the power of another integer. r its like a joker variable only used to save the value o “a” in order to keep going inside the while loop, until the “b” its equal to one.

2016-02-19 (2)

The second program of the quiz, print the number the user type in, and returns the number of stars corresponding to the number the user wrotes. The trick its not doing the string “*” times de number, you need to find another way.

I used a while loop in order to append one by one star into the list, then another while loop to print the list, when an end=”” it means that it will print a space and not a new line.

2016-02-19 (3)

code:

https://www.dropbox.com/s/dx8zx7uiunz3wu2/quiz2-2.py?dl=0

https://www.dropbox.com/s/x9htbn5ss1lb153/quiz2-1.py?dl=0

 

#TC101

CC BY-SA 4.0 #QUIZ02 by programmingtc101 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.