I commented out the userids creation dynamic sql statements and included drop userids dynamic sql in the script to drop all of the 10 users created. After executing the script, I selected the userids from dba_users:

select username from dba_users
where username like 'JP%' order by 1;
no rows selected

While dropping existing users from a database, I can select the usersname from the data dictionary view on specified conditions and loop through to drop the users from the database.

This is not the case with the creation of new users. The new users ids are not present in the data dictionary view. As such, I cannot select the data into a cursor and loop through it. Now I can parse the values from a string and loop through to complete the task.