r/learnpython • • Jun 09 '20

Github as a beginner

As a beginner learning python, is it too early to create and start coding simple projects on Github. and how do I transfer these codes (simple calculators) to a website I build subsequently?

401 Upvotes

111 comments sorted by

View all comments

32

u/sme272 Jun 09 '20

You can absolutely start putting things on github, even if it's just to practice using github. When you say put the code on a website what do you mean exactly? You could simply copy/paste the code onto the page and add some formatting and an explanation, or you could make it into a webapp where people can demo the code in action.

3

u/handsoffmyspacejunk Jun 10 '20

How does one go about developing a web app to demo code?

5

u/tomtomato0414 Jun 10 '20

0

u/[deleted] Jun 10 '20

[deleted]

1

u/tomtomato0414 Jun 10 '20

Use Flask or Django, they run python scripts and generate html

3

u/PyTec-Ari Jun 10 '20

You deploy that code to a web server. There are a myriad of ways to achieve this. If you are using HTML and JavaScript, you can host it quickly at Codepen.io

If you are using a python backend try pythonanywhere.com.

If you want deploy using industry methods, take a look at doing a course in a cloud platform such as Google Cloud Platform, Azure (Microsoft), or AWS (Amazon). These sites let you host web servers of various types. These are relatively simple to use, but complex in the context of a beginner.