week-4 #5

Merged
Kenwood merged 12 commits from week-4 into master 2021-02-03 16:53:55 -05:00
1 changed files with 11 additions and 0 deletions
Showing only changes of commit 5546a6d8f9 - Show all commits

11
4/4.8/4.8.2/main.py Normal file
View File

@ -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()