Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
以下のPythonコードについて説明が正しい項目を選択しなさい
a="和歌山大学"
b=type(a)
print(f"{a}の型は{b}です")
整数でaに代入すると,エラーにならない
このコードを実行した結果は「和歌山大学の型は<class 'str'>です」
このコードを実行した結果は「{a}の型は{b}です」である
type(a)でaの型を確認することができます
このコードを実行した結果は「"和歌山大学"の型は<class 'str'>です」
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!