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.
Jacinth
I can't figure out how to make a random code for Python!?
For this assignment, I have to program the scribbler robot using Python to conduct a random code walk.
Here are the program instructions: http://learn.flvs.net/webdav/educator_cprogram1_v9...
from random import *
from myro import *
init("simulator")
This is what I have so far, but I haven't been able to figure out how to put it together:
def right():
"""This function will tell scribbler to turn right 90 degrees then move forward for some time"""
turnRight(1)
wait(1.68)
forward(1,1)
def left():
"""This function will tell scribbler to turn left 90 degrees then move forward for some time"""
turnLeft(1)
wait(1.68)
forward(1,1)
def enterFlips():
""" This function prompts the user to enter the number of coin flips."""
flips = input("Enter the number of coin flips: ")
return flips
def flipCoinDecimals(flips):
""" This function uses the random() function to represent heads (result < .5) or tails(result >= .5)."""
heads = 0
for count in range(flips):
result = random()
if(result < .5):
heads = heads + 1
return heads
Programming & Design6 years agoCan a multiwii flight controller and FS-T6 transmitter be used to control a blimp?
We have a blimp competition in a week or so and we need to have a working blimp. The standard setup for blimps (as you probably already know) is two independently operating motors for forward and backward motion as well as "tank steer" and a third motor for up and down motion. I have a multiwii controller and I'm new to building RCs; I need to reprogram the multiwii flight controller (that is already pre-programmed for a multirotor aircraft) or something so I can control a blimp. How would I go about reprogramming the flight controller or hacking the controls?
1 AnswerHobbies & Crafts6 years agoNeed Calculus help with parametric equations!?
I don't understand this question If v(t) = ln(x^2+3)–3, then find v(2). I'm pretty sure you have to put the equation in terms of t and not x, but I don't understand how to do it.
2 AnswersMathematics7 years agoHow is Greek Mythology an allegory for the Lord of the Flies?
I know the best allegory for LOTF is Christianity, but I need an allegory using Greek Mythology, please specify what each character allegorically represents.
1 AnswerBooks & Authors7 years agois toyota ae86 a good first car?
Before you mention Initial D, I just need info, I found a stock 86 for $6,500 in excellent condition(it appears to be so). Would a Silvia be a better choice (240sx in the states) or would I regret not buying the 86 in the first place? I don't believe money won't be an issue, my parents are paying. Also I'm probably going to drift it only sometimes, not like a regular thing but like once a month. The racetrack near me is Adam's Motorsport Park and there is hwy 76, its a pretty nice and scary back road. Also would it be a financial gain to sell it in the future?
4 AnswersToyota8 years agoHelp! bunny ate crayon!?
She ate a little bit, about 3/4 the size of the tip of a crayon, then she sneezed a couple times, is she okay?
3 AnswersOther - Pets8 years agoWill the Nissan Leaf be good for long range commuting?
Would it be good for a commute of around 50 miles and after 7-9 hours return the same length?? Just to let you know, the starting point is in Temecula, CA to Mira Mesa, CA. If possible, how long could the Leaf keep the range over at least 55 miles?
5 AnswersNissan8 years agoMy rabbit will not let me pick it up, how do I convince it to let me pick it up?
Don't say that my bunny isn't accustomed to me because it (don't know gender yet) allows me to pet it but won't allow me to pick it up. I can pick up it's front feet but the moment I go for the back, it uses my hand as a jumping pad and jumps out of my hands. It isn't spayed/ neutered yet, could this be the problem?
4 AnswersOther - Pets8 years agoWhat would you suggest would be the best settings for real racing 3?
Settings like steering and traction control, etc
1 AnswerVideo & Online Games8 years ago