DOC: update code style for remaining intro tutorial docs for #36777
Addresses part of #36777
Ran blacken-tools and checked for warnings from flake8-rst for the remaining 5 intro tutorials. Note that tutorial 3 met the formatting requirements as is, so there is no change there.