A notebook text widget supplies the value 2026 as a string, but arithmetic expects a number. What should its code do?

Published
  1. Multiply the string without checking its meaning
  2. Validate and convert the widget value to the required numeric type
  3. Assume every widget returns a native integer
  4. Change the notebook's display font

Comments — 0