write a Python program to guess an integer number in a range
using the below algorithm and pseudo code
Attachments:
Answers
Answered by
3
Answer:
r and g will be in capital
Attachments:
Answered by
0
The Python Program to guess an integer number in a range,
import random
Count=0
N=int(input("Enter Range = "))
R=random(dot)rand()int(1,N)
while 1(semi colon)
G=int(input("Enter your Guess = "))
Count=Count+1
if R==G:
break
if R<G:
print("Guess is Too High")
else:
print("Guess is Too Low")
print("Number of Guesses Took =",Count)
Similar questions
Science,
2 months ago
French,
2 months ago
Science,
5 months ago
Social Sciences,
5 months ago
Math,
11 months ago