There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
Check the Deny and Allow logon to either the local machine, or through the network, or terminal services. One of these settings is probably denying you access. But you said you are able to login to the PC once you go there and login. So I am assuming it is the allow logon through Terminal Services that needs to be changed...it is by default set to include administrators and remote desktop users. A remote desktop user by default only includes the administrators so this is most likely the problem. Just add Users group or whatever group you would like to that policy and they should have access to the PC from remote desktop.