In my public high school in the US, it was required for all my math classes past basic algebra, but I only knew one person who ever tried to code anything on it themselves (although people transferred games pulled online frequently; this was early 00s, transfer was this weird USB to something that looked like an headphone jack to connect to computer), and there were either test calculators, or an instructor would clear RAM.