Posting codes on github

Hi. I have a Github account. But for now, I am not working on any projects which I can upload on Github. I am just doing competitive programming. Can I keep my GitHub account updated by uploading my programming codes. Is it a good practice. And if yes, please guide me with how can I do that. ps: I am new to GitHub and I just know a little about GitHub commands.

@tanyaa.sood
uploading programming codes wont do any good. because it does not hold any value as such.
If you want to learn github, you can try uploading them.
To upload them on github you first create repository and then upload your codes in it.