Anybody Know Why This Code Isnt Working R Learnpython

Anybody Know Why This Code Isnt Working R Learnpython