Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Now, Knightro wanted to add two layers of complexity to discourage Petey. He wants to take a random number from 5 0 - 5 0
Now, Knightro wanted to add two layers of complexity to discourage Petey. He wants to take a random number from and
save it as a variable named number. He then wants to create another line of code that will take the square root of that number, and
then rounds it up to the next integer, and saves it as the variable ans.
import math
import random
ans math.isqrtn
You must use randint in line and the math library in line
Answer :
You left this blank
Answer :
ans math.isqrtnumber
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started