New Replit Python Coding For Loops In R