(ERASE YOUR COOKIES)
Here are my answers to quizz 06:
1:Â http://bit.ly/1OtzqdH
2:Â http://bit.ly/1NBJQr
]]>And my code is on github :Â https://github.com/pololarinette/TC-1014/blob/master/%23QUIZ06
]]>And my code is on github :Â https://github.com/pololarinette/TC-1014/blob/master/%23QUIZ06
]]>def superpower (a,b):
ans = 1
for i in range(b):
ans = ans * a
return (ans)
print (“Hey lets make some math”)
x = int(input(“Please type a non-negative number so we can raised it: “))
y = int(input(“please type a non-negative number so we can use it as exponent: “))
print(x, ‘raised to the’, y, ‘power is: ‘, superpower(x,y))
P2.-
#Fernando Salaña
#A01350730
def stars (a):
ans = ”
for i in range(a):
ans = ‘*’ + ans
return (ans)
x = int(input(‘Type how many stars you want to see: ‘))
print (stars(x))
def superpower (a,b):
ans = 1
for i in range(b):
ans = ans * a
return (ans)
print (“Hey lets make some math”)
x = int(input(“Please type a non-negative number so we can raised it: “))
y = int(input(“please type a non-negative number so we can use it as exponent: “))
print(x, ‘raised to the’, y, ‘power is: ‘, superpower(x,y))
P2.-
#Fernando Salaña
#A01350730
def stars (a):
ans = ”
for i in range(a):
ans = ‘*’ + ans
return (ans)
x = int(input(‘Type how many stars you want to see: ‘))
print (stars(x))
Spoiler Alert: I got 5 on that quiz…
]]>This quiz was a piece of cake, i didn’t have any problems and i feel really stupid because the first time i couldn’t do it the right way.
HERE IS THE LINK TO MY CODE:
https://www.dropbox.com/s/64i8sx2aiq74th7/p1.py?dl=0
]]>Part one of the quiz:
https://drive.google.com/file/d/0B5oyxKG3KmVxZUJwNm80bXZSRUk/view?usp=sharing
Part two of the quiz:
https://drive.google.com/file/d/0B5oyxKG3KmVxdlFWTjJ0cjVhREU/view?usp=sharing
]]>p1.py
Here’s the code: https://github.com/JsphSalazar/Quiz-06/blob/master/p1
p2.py
Here’s the last one: https://github.com/JsphSalazar/Quiz-06/blob/master/p2
]]>