Compare commits
2 Commits
9f9c84428c
...
5546a6d8f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5546a6d8f9 | ||
|
|
d592cc5b0b |
8
4/4.8/4.8.1/main.py
Normal file
8
4/4.8/4.8.1/main.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
num_rows = int(input())
|
||||||
|
num_cols = int(input())
|
||||||
|
|
||||||
|
for _i in range(num_rows):
|
||||||
|
print('*', end=' ')
|
||||||
|
for _i in range(num_cols - 1):
|
||||||
|
print('*', end=' ')
|
||||||
|
print()
|
||||||
11
4/4.8/4.8.2/main.py
Normal file
11
4/4.8/4.8.2/main.py
Normal 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()
|
||||||
Reference in New Issue
Block a user