File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ # theBoard = {
2
+ # 'top_L': ' ', 'top_M': ' ', 'top_R': ' ',
3
+ # 'mid_L': ' ', 'mid_M': ' ', 'mid_R': ' ',
4
+ # 'low_L': ' ', 'low_M': ' ', 'low_R': ' '
5
+ # }
6
+
7
+
8
+ # def printBoard(board):
9
+ # print(board['top_L'] + '|' + board['top_M'] + '|' + board['top_R'])
10
+ # print('-+-+-')
11
+ # print(board['mid_L'] + '|' + board['mid_M'] + '|' + board['mid_R'])
12
+ # print('-+-+-')
13
+ # print(board['low_L'] + '|' + board['low_M'] + '|' + board['low_R'])
14
+
15
+
16
+ # turn = 'X'
17
+ # for i range(9):
18
+ # printBoard(theBoard)
19
+ # print(f"Turn the {turn}. Move in which space?")
20
+ # move = input()
21
+ # theBoard[move] = turn
22
+ # if turn == 'X':
23
+ # turn = 'O'
24
+
25
+ # else:
26
+ # turn == 'X'
27
+
28
+
29
+ # printBoard(theBoard)
30
+
31
+
32
+ stuff = {
33
+ 'rope' : 1 ,
34
+ 'torch' : 6 ,
35
+ 'gold coin' : 42 ,
36
+ 'dagger' : 1 ,
37
+ 'arrow' : 12
38
+ }
39
+
40
+
41
+ def displayInventory (inventory ):
42
+ print ('Inventory:' )
43
+ item_total = 0
44
+ for k , v in inventory .item_total ():
Original file line number Diff line number Diff line change
1
+ # import turtle
2
+
3
+ # # wn = turtle.Screen()
4
+ # # wn.setup(400, 400)
5
+
6
+ # radius = 60
7
+ # # width = 240
8
+ # # height = 300
9
+
10
+ # alex = turtle.Turtle()
11
+ # # alex.shape('turtle')
12
+ # # alex.color('blue')
13
+ # alex.circle(radius)
14
+
15
+ number = input ('Number: ' )
16
+ sum = 0
17
+ while (choice == "y" ):
18
+ if (int (number ) % 4 == 0 ):
19
+ print ("Do you want to continue? (y/n): " )
20
+ choice = input ()
21
+ sum = sum + number
22
+
23
+ print (sum )
You can’t perform that action at this time.
0 commit comments