pythonic get column

This commit is contained in:
Mert Gör ☭ 2023-05-29 16:04:52 +03:00
parent d6717f2eb7
commit ccce90ee50
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import random
def get_column():
result = set()
while len(result) != 6:
val = random.randint(1, 49)
result.add(val)
return list(result)
col = get_column()
for i in col:
print(i, end = ' ')