Skip to content

Commit f1ffad2

Browse files
committed
Start practising with moves
1 parent 1444b3e commit f1ffad2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

moves_testing/moves1.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Move a string from right to left in an array
2+
3+
playerpos = 6
4+
screen = [1, 2, 3, 4, 5, 6]
5+
6+
while playerpos > 0:
7+
playerpos = playerpos - 1
8+
screen[playerpos] = "player"
9+
print(screen)

0 commit comments

Comments
 (0)