Please helpppp. Rearrange the parts of the program to generate two random integers and then ask the user to guess the greatest common divisor.
First part
Second part
Fourth part
Third part

1. from math import gcd
from random import randrange

numA=randrange(6,50,2)

numB = randrange(6,30,2)

if guess == answer:

print("Good job! You are right.")

print("The right answer is",answer)

answer = gcd(numA,numB)
guess = input("Greatest common divisor of " + str(numA) + " and " + str(numB) + "? " )

Respuesta :

Answer:

first part:

from math import gcd  

from random import randrange

second part:

numA=randrange(6,50,2)

numB = randrange(6,30,2)

third part:

answer = gcd(numA,numB)

guess = input("Greatest common divisor of " + str(numA) + " and " + str(numB) + "? " )

fourth part:

if guess == answer:  

print("Good job! You are right.")

print("The right answer is",answer)

Explanation:

got it right on edge

Answer:

first part:

from math import gcd  

from random import randrange

second part:

numA=randrange(6,50,2)

numB = randrange(6,30,2)

third part:

answer = gcd(numA,numB)

guess = input("Greatest common divisor of " + str(numA) + " and " + str(numB) + "? " )

fourth part:

if guess == answer:  

print("Good job! You are right.")

print("The right answer is",answer)

Explanation:

yes