vendredi 5 novembre 2021

Create a function that accepts integer x,y and key.function will generate 10 random numbers between x and y [closed]

Create a function that accepts the integer parameters x,y and key. So this function will generate 10 random numbers between x and y. Then the key parameter will be searcher on this random array. If it is found there, the function will return 1, otherwise -1

I did part of it but i couldnt finish it!. I need some help

x,y=map(int,input("Enter number: ").split())
def number():
  if range(x,y):
  



Aucun commentaire:

Enregistrer un commentaire