-2
これは私が「パイソンで退屈なものを自動化する」のレッスンの1つを試しています。コードは次のようになります。私はTypeErrorを取得し続けています:コードの第6行に暗黙的に 'NoneType'オブジェクトをstrに変換することはできません
# this program says hello and asks for my name.
print('hello world!')
print('what is your name?') # ask for their name
myName = input()
myName = print()
print('it is good to meet you,' + myName)
print('the length of your name is:')
print(len(myName))
print('what is your age?') # ask for their age
myAge = print()
print('you will be ' + str(int(myAge) + 1) + ' in a year. ')
'myAge =プリント()'を置きたいのだと信じて
であるように思われます。 'print'は' None'を返します。何をしようとしていますか?それは 'input()'であるはずですか? –
6行目に何もありません。 –