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

Show parent comments

16

u/CaptSprinkls Jun 09 '20

I have been off and on learning programming ever since I graduated college. About 2 years ago I sat down and decided to learn C++. My first application was a tic tac toe game. I shit you not, it was 1000 lines of code.

Sad times....

3

u/SirMarbles Jun 09 '20

I’m a CS major. If you don’t mind. Can I see the code? The next language I want to dabble in is C++.

11

u/CaptSprinkls Jun 09 '20

Oh, this is definitely not something you want to look at it you want to learn C++. I'm pretty sure a tic tac toe game can be done in like ~50-75 lines of code. Q

I got to 1,000 lines because I just did huge nested if statements.

7

u/thirdegree Jun 10 '20

I got to 1,000 lines because I just did huge nested if statements.

Ah, you wrote an AI.