QuestionQ35

VerifiedPython/PyEZ

Click the Exhibit button.

Question Image

Which two statements about the Python variables shown in the exhibit are correct?

Choose two
Explanation

A value enclosed in single quotes is a string literal, so string1 is a string. The unquoted value 2000 is an integer literal. A name assigned at module level, outside a function definition, is a global variable; therefore string3 is global.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!