質問編集履歴

2

afsdf

2019/03/14 11:42

投稿

raonarud
raonarud

スコア88

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,10 @@
1
1
  pythonのlistで最小値を取り出したいのですがうまくいきません。以下のlistですとx=345と表示させたいです。
2
+
3
+ 変数xにリストが入っていると仮定します。
2
4
 
3
5
 
4
6
 
5
-
6
-
7
- **listの形式**
7
+ **listの形式(変数x)**
8
8
 
9
9
  ```
10
10
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  ```python
24
24
 
25
- x = min(list)
25
+ x = min(x)
26
26
 
27
27
  print(x)
28
28
 

1

dfds

2019/03/14 11:42

投稿

raonarud
raonarud

スコア88

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- pythonのlistで最小値を取り出したいのですがうまくいきません。以下のlistですと345と表示させたいです。
1
+ pythonのlistで最小値を取り出したいのですがうまくいきません。以下のlistですとx=345と表示させたいです。
2
2
 
3
3
 
4
4
 
@@ -22,7 +22,9 @@
22
22
 
23
23
  ```python
24
24
 
25
- min(list)
25
+ x = min(list)
26
+
27
+ print(x)
26
28
 
27
29
  ```
28
30