1) What is a namespace in Python? a) A type of loop b) A container that maps names to objects c) A function that stores variables d) A file containing all variable names 2) Which of the following is an example of a built-in namespace? a) Variables inside a function b) Variables declared at the top of a script c) Functions such as print() and list() d) Variables declared using the global keyword 3) Where does Python search for a variable first? a) Built-in namespace b) Global namespace c) Local namespace d) Parent namespace 4) In the following code, which variable has local scope? a) school_name b) year c) student_name d) None of the above 5) What is the main error in the following code? a) Syntax error b) interest is a global variable c) interest is used outside the function (local variable) d) All the above
0%
python namespace
共有
共有
共有
Aabdalgamal
さんの投稿です
コンテンツの編集
印刷
埋め込み
もっと見る
割り当て
リーダーボード
もっと表示する
表示を少なくする
このリーダーボードは現在非公開です。公開するには
共有
をクリックしてください。
このリーダーボードは、リソースの所有者によって無効にされています。
このリーダーボードは、あなたのオプションがリソースオーナーと異なるため、無効になっています。
オプションを元に戻す
ボックスを開く
は自由形式のテンプレートです。リーダーボード用のスコアは生成されません。
ログインが必要です
表示スタイル
フォント
サブスクリプションが必要です
オプション
テンプレートを切り替える
すべてを表示
アクティビティを再生すると、より多くのフォーマットが表示されます。
オープン結果
リンクをコピー
QRコード
削除
自動保存:
を復元しますか?