a = ['*','#','$'] b = [1,4,7]
How can I make use of the above lists and loop to print the pattern with the required number of rows? Here are 2 examples if the input is 5 and 10 respectively. Do not need to print the bracket on each line. Thanks.
Number of rows: 5
(*)
(####)
($$$$$$$)
(*)
(####)
Number of rows: 10
(*)
(####)
($$$$$$$)
(*)
(####)
($$$$$$$)
(*)
(####)
($$$$$$$)
(*)