MCQs > IT & Programming > Python > Read the following statements: Statement 1: A simple assignment statement binds a name into the current namespace, unless that name has been declared as global. Statement 2: A name declared as global is bound to the global (module-level) namespace. Which of the following is correct?

Python MCQs

Read the following statements:

Statement 1: A simple assignment statement binds a name into the current namespace, unless that name has been declared as global.

Statement 2: A name declared as global is bound to the global (module-level) namespace.

Which of the following is correct?

Answer

Correct Answer: Both statements are true.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it