position = input(“where u want to put mark? “)
line1 = [“⬜️”, “️⬜️”, “️⬜️”]
line2 = [“⬜️”, “⬜️”, “️⬜️”]
line3 = [“⬜️️”, “⬜️️”, “⬜️️”]
map = [line1, line2, line3]
letter = position[0].lower()
abc = [“a”, “b”, “c”]
letter_index = abc.index(letter)
number_index = int(position[1]) – 1
map[number_index][letter_index] = “X”
print(f”{line1}n{line2}n{line3}”)
position = input(“where u want to put mark? “)
line1 = [“⬜️”, “️⬜️”, “️⬜️”]
line2 = [“⬜️”, “⬜️”, “️⬜️”]
line3 = [“⬜️️”, “⬜️️”, “⬜️️”]
map = [line1, line2, line3]
letter = position[0].lower()
abc = [“a”, “b”, “c”]
letter_index = abc.index(letter)
number_index = int(position[1])
type here
map[number_index][letter_index] = “X”
print(f”{line1}n{line2}n{line3}”)
PRADEEP GOPALWANI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.