質問編集履歴

2

コードが読めるようにする

2020/06/24 07:15

投稿

Happy_Kid
Happy_Kid

スコア4

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,40 @@
1
+ ```
2
+
3
+ print("What are you planning to buy today?")
4
+
5
+ Shopping_list = ['What your going to buy']
6
+
7
+ thing = input()
8
+
9
+ count = 0
10
+
11
+ i = 5000
12
+
13
+ if thing != 'all':
14
+
15
+ for i in range(5000):
16
+
17
+ count = count + 1
18
+
19
+ Shopping_list.insert(count,thing)
20
+
21
+ print("Do you have anything else to buy? If you don't have anything, type all.")
22
+
23
+ thing = input()
24
+
25
+
26
+
27
+ print(Shopping_list)
28
+
29
+
30
+
31
+
32
+
33
+ "
34
+
35
+ コード
36
+
1
- ### 前提・実現したいこと
37
+ ```### 前提・実現したいこと
2
38
 
3
39
 
4
40
 

1

タイトルの変更

2020/06/24 07:15

投稿

Happy_Kid
Happy_Kid

スコア4

test CHANGED
@@ -1 +1 @@
1
- Python inputのif文
1
+ Python if文のinput
test CHANGED
File without changes