Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
jaws
Need help with my python script?
Nichalaus Jaworski Lab 6-1
import random
def main():
flips = inputnum()
heads,tails = flipsht(flips)
printem(heads,tails)
def inputnum():
flips = input ('how many times do you want to flip: ')
return flips
def flipsht(flips):
heads = 0
tails = 0
x = 0
while x ==flips:
r = random.randrange(2)
if r == 0:
heads = heads + 1
else:
tails = tails + 1
x = x + 1
return heads, tails
def printem(heads,tails):
print 'Number of heads: ', heads
print ''
print 'Number of tails: ', tails
return
loop=1
while loop == 1:
main()
loop= input ('Would you like to flip again? 1=yes 0= no: ')
print;print;print
this is what I have, I need to make it flip the coin as many times as the user inputs
1 AnswerProgramming & Design10 years agoCan you turn a HDMI out into a HDMI in?
I just got a new HP Pavilion dv6 and I was wondering if it was possible to turn the HDMI out to a HDMI in so I can record tv shows?
2 AnswersOther - Hardware10 years agoMicrosoft Excel formula?
I am attempting to create a formula to take a date of a prescription filled and add 31 days to it, then make the cell say with 10 days left, Refill soon and at 2 days turn red or just say Refill needed.. any place I can read to do that, or any one give me a rundown.
2 AnswersSoftware1 decade agomy amp overpowers my sub, how do i fix?
i have a http://www.pioneerelectronics.com/PUSA/Products/Ca... amp, and a http://www.crutchfield.com/p_130TSW303R/Pioneer-TS... sub. my amp pushes 50 watts more power then needed, and causes my sub coils to burn and smoke. how can i get it down to 250watts?
2 AnswersCar Audio1 decade agoHow can you rub two subs with one amp?
My amp is a Pioneer, 1200 max, RMS=600 watts at 2 ohms, 300 at 4 ohms
http://www.pioneerelectronics.com/PUSA/Products/Ca...
I'm pushing one Pioneer sub at 1200 watts max, 250 RMS
http://www.pioneerelectronics.com/PUSA/Products/Ca...
can i push 2 of them off the one amp?
4 AnswersCar Audio1 decade agomath problem where u start with one number and end with it?
its like a 6 step problem, i cant find it on Google, any one know it?
1 AnswerMathematics1 decade agoubuntu 9.10 help! sound stopped working after i updated?
i updated ubuntu, not quite sure what updates, but i went to listen to music and no sound. i noticed my sound drivers were missing. How could i get them back? or reinstall them
4 AnswersSoftware1 decade agoSaturn audio help. How to connect amp to facTory radio?
I need instructions for removing the factory radio well the dash to get to the radio, and I was just also wondering if there is a way to connect an amp without getting behind the radio.
1 AnswerCar Audio1 decade agoubuntu network won't work?
I tried the sudo network-admin and it says that command not found… I also don't have any network connection wireless or wired. It happened after I unstalled wicd... Is their anyway to fix this without reinstalling?
4 AnswersComputer Networking1 decade agobiggest win in olympic hockey?
i was just wondering what the biggest win was, i know canada beat denmark 47-0. is there any bigger ones?
1 AnswerOlympics1 decade agoName of a song from My Baby's Daddy?
whats the name of the song that they play during the movie, when the three men decide that they need to stop do stupid stuff and be part of their kids life? when they remove the condom machine and put in the diaper machine. that sence
1 AnswerOther - Music1 decade agoInvalid mode and my tv, cant play video?
im useing a vizio tv and i ahve connected my computer up, but when i goto play videos with windows media player, the tv says invalid mode?
1 AnswerTVs1 decade agois it right for this to happen?
my girlfriend who said she loved me (and i loved her too) and wanted to be with me, broke up with me yesterday, idc but not even 24 hours later she is going out with some other dude, do you think that's right. And after we broke up she told me i was retarded and wish she never dated me. I'm starting to think she was cheating or something on me. Give me your opion
1 AnswerSingles & Dating1 decade agoHelp with some javascript?
I'm trying to write a script that will show a pop up box that you put your birthday into and if your older then the age you goto the site and if not you go somewhere else.. can someone point me to a site or help me write one
1 AnswerProgramming & Design1 decade agoWho can help me with javascript?
im trying to make a pop up box asking a question and then if they click yes it takes you one place and if you click no it takes you another place. i'm trying to teach myself so if you could help. thanks
3 AnswersProgramming & Design1 decade agoNC license help?
who know if in NC you can get ur license at 16 or if you have to get ur permit?
2 AnswersLaw Enforcement & Police1 decade agowhat type, calaber firearm's do loudoun county sheriff office use?
Like a .44 mag
and a 12 gauge shotgun?
3 AnswersLaw Enforcement & Police1 decade agodoes anyone know the URL for the a prentice hall geometry teacher book?
i got the one for biology and i cant find the one for geometry
3 AnswersMathematics1 decade ago