jeudi 8 juillet 2021

Adding text in front of separate numbers in list

Im new to python and hit a wall with my last print in my program I got a list of random int(numbers that when printed looks like this [0, 0, 0, 0] #just with random numbers from 1 - 1000

I want to add text in front of every random number in list and print it out like this [Paul 0 Frederick 0 Ape 0 Ida 0]

Any help would be appreciated. Thanks !




Aucun commentaire:

Enregistrer un commentaire