May-28-2020, 10:04 AM
Good news! I did something like this:
It isnt useless to make a dot after the number (240., 321., etc.) It always make with a space but it is just a cosmetic error. Doesnt care.
Now I expect to use if or something like this to determinate the numbers and letters not to repeat. I need to think about how to do it.
import random import string number=random.randrange(1500)+1 letter=random.choice(['a','b','c','d','e','f','g','h']) dot='.' for i in range(100): number=random.randrange(1500)+1 letter1=random.choice(['a','b','c','d','e','f','g','h']) letter2=random.choice(['a','b','c','d','e','f','g','h']) letter3=random.choice(['a','b','c','d','e','f','g','h']) letter4=random.choice(['a','b','c','d','e','f','g','h']) print(number,dot,letter1,letter2,letter3,letter4)
It isnt useless to make a dot after the number (240., 321., etc.) It always make with a space but it is just a cosmetic error. Doesnt care.
Now I expect to use if or something like this to determinate the numbers and letters not to repeat. I need to think about how to do it.