Answer:
import sys
import turtle
import random
def n_pointed_star(total_points):
if total_points <= 4:
raise ValueError('Not enough total_points')
area = 150
for coprime in range(total_points//2, 1, -1):
if greatest_common_divisor(total_points, coprime) == 1:
start = turtle.position()
for _ in range(total_points):
turtle.forward(area)
turtle.left(360.0 / total_points * coprime)
turtle.setposition(start)
return
def greatest_common_divisor(a, b):
while b != 0:
a, b = b, a % b
return a
turtle.reset()
n_pointed_star(5)
Explanation:
- Inside the n_pointed_star function, check whether the total no. of points are less than or equal to 4 and then throw an exception.
- Loop through the total_points variable and check whether the result from greatest_common_divisor is equal to 1 or not and then set the starting position of turtle and move it.
- Create the greatest_common_divisor which takes two parameters a and b to find the GCD.
- Finally reset the turtle and call the n_pointed_star function.
When an individual user works in stand-alone mode, the workstation performs all the functions of a server by storing, accessing, and processing data as well as providing a user interface.
Answer:
the aspect that help you change the luminescence of your image is iframe
Answer:
Allowing humans to talk to the computer
Explanation:
the operating system manages the computer hardware and software
and it also allows the ALU to perform quick calculations
Answer:
No
Explanation:
No, La ciencia organiza toda la informacion que obtenemos despues de hacer experimentos. Esta informacion se puede replicar y probar, ademas nos ayuda ampliar nuestro conocimiento de varios temas. Las tecnicas, son procedimientos y reglas que fueron formados para solucionar problemas y obtener un resultado determinado y efectivo. Sea como sea la ciencia y las tecnicas se necesitas para que exista la tecnologia. Sin la ciencia y las tecnicas se tendria que obtener la informacion para poder entender y crear tecnologia, y para hacer eso tenes que hacer experimentos, procedimientos, y reglas (ciencia y tecnicas.)