回答編集履歴
1
Update
test
CHANGED
@@ -1,13 +1,25 @@
|
|
1
1
|
```python
|
2
2
|
|
3
3
|
i = v = 1
|
4
|
+
|
5
|
+
lst = []
|
4
6
|
|
5
7
|
while v < 1000:
|
6
8
|
|
7
9
|
print(f'値: {v}, 整数平方根: {i}')
|
8
10
|
|
11
|
+
lst.append(v)
|
12
|
+
|
9
13
|
i += 1
|
10
14
|
|
11
15
|
v = i * i
|
12
16
|
|
17
|
+
|
18
|
+
|
19
|
+
print(lst)
|
20
|
+
|
21
|
+
#
|
22
|
+
|
23
|
+
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900, 961]
|
24
|
+
|
13
25
|
```
|