From 5546a6d8f9dafb7ad3cc7958a8dca95e9d9a5261 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 31 Jan 2021 17:57:12 -0500 Subject: [PATCH] add 4.8.2 --- 4/4.8/4.8.2/main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 4/4.8/4.8.2/main.py diff --git a/4/4.8/4.8.2/main.py b/4/4.8/4.8.2/main.py new file mode 100644 index 0000000..4ea595c --- /dev/null +++ b/4/4.8/4.8.2/main.py @@ -0,0 +1,11 @@ +num_rows = int(input()) +num_cols = int(input()) + +# Note 1: You will need to declare more variables +# Note 2: Place end=' ' at the end of your print statement to separate seats by spaces + +for row_num in range(1, num_rows + 1): + for col_char in map(chr, range(ord('A'), ord('A') + num_cols)): + print('{0}{1}'.format(row_num, col_char), end=' ') + +print() \ No newline at end of file