回答編集履歴
4
誤字の修正
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
```Python
|
34
34
|
|
35
|
-
if all(el not in lis for el in [
|
35
|
+
if all(el not in lis for el in ["#", "$", "&", "="]):
|
36
36
|
|
37
37
|
```
|
38
38
|
|
3
修正
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
```Python
|
34
34
|
|
35
|
-
if all(el not in lis for el in ['#', '$', '&', '='):
|
35
|
+
if all(el not in lis for el in ['#', '$', '&', '=']):
|
36
36
|
|
37
37
|
```
|
38
38
|
|
2
修正
test
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
|
7
7
|
```
|
8
8
|
|
9
|
-
の部分ですね。a
|
9
|
+
の部分ですね。allを使うと綺麗になります:
|
10
10
|
|
11
11
|
|
12
12
|
|
13
13
|
```Python
|
14
14
|
|
15
|
-
if a
|
15
|
+
if all(str(i) not in lis for i in range(10)):
|
16
16
|
|
17
17
|
print('password should contain numbers')
|
18
18
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
```Python
|
34
34
|
|
35
|
-
if a
|
35
|
+
if all(el not in lis for el in ['#', '$', '&', '='):
|
36
36
|
|
37
37
|
```
|
38
38
|
|
1
追加
test
CHANGED
@@ -17,3 +17,23 @@
|
|
17
17
|
print('password should contain numbers')
|
18
18
|
|
19
19
|
```
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
あとは
|
24
|
+
|
25
|
+
```Python
|
26
|
+
|
27
|
+
if "#" not in lis and "$" not in lis and "&"not in lis and "=" not in lis:
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
のところも同様に、
|
32
|
+
|
33
|
+
```Python
|
34
|
+
|
35
|
+
if any(el not in lis for el in ['#', '$', '&', '='):
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
とすれば良いでしょう。
|