Rules

Write one statement per line. Indentation means nothing; containment comes from in=. Strings use JSON double quotes. Inside a string, write \" for…