質問編集履歴

7

タイトル変更

2022/03/23 11:46

投稿

believe
believe

スコア91

test CHANGED
@@ -1 +1 @@
1
- pythonの'NoneType' and 'str'につ
1
+ pythonのクイズブログラムを動かしたです。
test CHANGED
File without changes

6

修正しました。動きました

2022/03/23 08:45

投稿

believe
believe

スコア91

test CHANGED
File without changes
test CHANGED
@@ -73,4 +73,9 @@
73
73
 
74
74
  戻り値(return)のない関数の実行結果は「値None, タイプNoneType」になるみたいです。
75
75
 
76
+ 修正しました。
77
+ print ("\n") + easy_string
78
+
79
+ print ("\n" + easy_string)
80
+
76
81
  よろしくお願いします。

5

追記

2022/03/23 08:37

投稿

believe
believe

スコア91

test CHANGED
File without changes
test CHANGED
@@ -71,4 +71,6 @@
71
71
  追記
72
72
  returnを適切に設置されていないのが原因のような気がします。
73
73
 
74
+ 戻り値(return)のない関数の実行結果は「値None, タイプNoneType」になるみたいです。
75
+
74
76
  よろしくお願いします。

4

追記

2022/03/23 08:34

投稿

believe
believe

スコア91

test CHANGED
File without changes
test CHANGED
@@ -67,4 +67,8 @@
67
67
  python3では、printがステートメントから関数に変わっているエラーなので、 print() に直しました。
68
68
 
69
69
  環境 debian
70
+
71
+ 追記
72
+ returnを適切に設置されていないのが原因のような気がします。
73
+
70
74
  よろしくお願いします。

3

前提にしたことを追加

2022/03/23 08:33

投稿

believe
believe

スコア91

test CHANGED
File without changes
test CHANGED
@@ -1,7 +1,6 @@
1
1
  TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'について
2
2
  前提・実現したいこと
3
3
  pythonのクイズブログラムを動かしたいです。
4
-
5
4
  ```python
6
5
  # Here are the three steneces I came up with so that I could create the quiz.
7
6
  easy_string = "Coding in __1__ can be __2__, but once you learn simple __3__ it can become __4__."

2

前提・実現したいことを追加

2022/03/23 08:32

投稿

believe
believe

スコア91

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,6 @@
1
1
  TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'について
2
+ 前提・実現したいこと
3
+ pythonのクイズブログラムを動かしたいです。
2
4
 
3
5
  ```python
4
6
  # Here are the three steneces I came up with so that I could create the quiz.
@@ -65,4 +67,5 @@
65
67
  対応したこと
66
68
  python3では、printがステートメントから関数に変わっているエラーなので、 print() に直しました。
67
69
 
70
+ 環境 debian
68
71
  よろしくお願いします。

1

タイトルを修正しました

2022/03/23 08:30

投稿

believe
believe

スコア91

test CHANGED
@@ -1 +1 @@
1
- TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'について
1
+ python'NoneType' and 'str'について
test CHANGED
File without changes