Answer the question
In order to leave comments, you need to log in
How to put values into a list on such a Python example?
Greetings!
Please tell me how to put values in a list, for example, there is such a code:
for i in range(10):
rand = SystemRandom().randrange(10000000,90000000)
hex = "%010x" % rand
print(hex)
The result of the execution will be 10 random values of the type
: valueslit = ','.join(values)
print(valueslit)
And the result of execution separated by commas: Answer the question
In order to leave comments, you need to log in
hex_list = []
for i in range(10):
rand = SystemRandom().randrange(10000000,90000000)
hex = "%010x" % rand
hex_list.append(hex)
result = ','.join(hex_list)
print(result)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question