Generation

generate functionWed, 22 Mar 2023

te doy 5 números aleatorios y tu me tienes que decir cual va a ser el siguiente número

import random def next_number(number_list): pass number_list = [random.randint(1,5) for i in range(5)] print number_list print next_number(number_list)

Questions about programming?Chat with your personal AI assistant