STEP 8: We just printed the value of our first Boolean variable. Let's prove that it's really a Boolean!

When using type(), you'll usually see the data type in an abbreviated form. For example, bool, str, and int.

  • Drag Print Type onto the next line and edit it so that it clearly outputs the type of condition_1a.
  • Click Run, enter a number, and examine the output. What is the output for type(condition_1a)?
  • Is the type of condition_1a ever different based on your input?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)