Computer Science, asked by ajayprhaveenn, 5 months ago

write a Python program to guess an integer number in a range
using the below algorithm and pseudo code ​

Attachments:

Answers

Answered by mk829119
3

Answer:

r and g will be in capital

Attachments:
Answered by SaurabhJacob
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