Jun-06-2020, 07:21 AM
(Jun-06-2020, 07:01 AM)rs74 Wrote: Oh, thanks for fast reply, it works great. Interesting with .format, will read and test more.
.format()
is starting to get old,there is now f-string.from random import randrange print(f'What is {randrange(1, 11)} times {randrange(1, 11)}?')
Output:What is 4 times 1?