Answer:
In Python:
def fib(nterms):
n1, n2 = 1, 1
count = 0
while count < nterms:
term = n1
nth = n1 + n2
n1 = n2
n2 = nth
count += 1
return term
Explanation:
This line defines the function
def fib(nterms):
This line initializes the first and second terms to 1
n1, n2 = 1, 1
This line initializes the Fibonacci count to 0
count = 0
The following while loops gets the number at the position of nterms
<em> while count < nterms:
</em>
<em> term = n1
</em>
<em> nth = n1 + n2
</em>
<em> n1 = n2
</em>
<em> n2 = nth
</em>
<em> count += 1
</em>
This returns the Fibonnaci term
return term
Answer:
#import turtle
import turtle
# set screen
Screen = turtle.Turtle()
# decide colors
cir= ['red','green','blue','yellow','purple']
# decide pensize
turtle.pensize(4)
# Draw star pattern
turtle.penup()
turtle.setpos(-90,30)
turtle.pendown()
for i in range(5):
turtle.pencolor(cir[i])
turtle.forward(200)
turtle.right(144)
turtle.penup()
turtle.setpos(80,-140)
turtle.pendown()
# choose pen color
turtle.pencolor("Black")
# importing turtle module
import turtle
# number of sides
n = 10
# creating instance of turtle
pen = turtle.Turtle()
# loop to draw a side
for i in range(n):
# drawing side of
# length i*10
pen.forward(i * 10)
# changing direction of pen
# by 144 degree in clockwise
pen.right(144)
# closing the instance
turtle.done()
turtle.done()
Explanation:
Answer:
light bulb battery on/off switch
Explanation:
lol
Answer: you cant
Explanation:
you can not delete a question. Have a good day
For free or for money cuz for free u would do ot on ur mp3 and money i would yse apple music