We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6eb05d commit 0a6e0cdCopy full SHA for 0a6e0cd
100 Days of Code/Preparations/4-day-PRE-treasure-map.py
@@ -0,0 +1,25 @@
1
+# 🚨 Don't change the code below 👇
2
+row1 = ["⬜️", "⬜️", "⬜️"]
3
+row2 = ["⬜️", "⬜️", "⬜️"]
4
+row3 = ["⬜️", "⬜️", "⬜️"]
5
+map = [row1, row2, row3]
6
+print(f"{row1}\n{row2}\n{row3}")
7
+position = input("Where do you want to put the treasure? ")
8
+# 🚨 Don't change the code above 👆
9
+
10
+# Write your code below this row 👇
11
12
+# Picking the user input.
13
+horPos = int(position[0])
14
+verPos = int(position[1])
15
16
+# Printing selected coordinate
17
+selectedRow = map[verPos - 1]
18
+selectedRow[horPos - 1] = "X"
19
20
+print(f"You've selected: {selectedRow}\n")
21
22
+# Write your code above this row 👆
23
24
25
0 commit comments