← Back to Loops
Question 391
Seat Labels
Seat Labels
Read a number of rows and print the seat labels of a small theatre: each row has seats A, B and C (declared as a list), and the labels of one row go on one line separated by spaces, such as row 2 giving 2A 2B 2C. Use a while loop over the row numbers starting at 1, an inner for loop over the seat letters with print(..., end=' '), and a bare print() after the inner loop. Input: one integer of at least 1, no prompt.
Expected Output:
1A 1B 1C 2A 2B 2C
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Loops
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.