Ethan H.

asked • 02/09/21

How to random generate a number from 1-499 and have the number square rooted if there is no decimals output the number,square root, and description of it having no decimal places

import math
import random

print(random.randint(1,499))
X = rand.randint(1,499)
math.sqrt(X)

print(X)


1 Expert Answer

By:

Patrick B. answered • 02/09/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.