jeudi 21 juillet 2022

Random number script generator [closed]

import random

p = random.randrange(1,4)
print(p)

def y():
    return None if p == 1 else x

if #y's return statement is x:
    print("p is not 1")

If there is a way to compare return values to their functions, please give an answer using minimal editing. Please keep the code in tact, and only change code where the comment appears,




Aucun commentaire:

Enregistrer un commentaire