# This program prints lines of characters # of randomly chosen lengths between 1-20. import random def main(): for i in range(10): r = random.randint(1, 20) print("#" * r) main()