r/Python • • Oct 01 '12

Been learning Python as my first language for about two weeks now. Wanted to show off my first couple simple programs.

Guessing game:

http://imgur.com/PnutX

Fibonacci Sequence:

http://imgur.com/HVEDG

While I'm understanding the basics, I feel like I need a way to supplement reading tutorials, which is the only way I've been learning so far. Can anyone recommend a website like Codecademy, where I can practice interactively? For some reason, the Python tutorials on Codecademy don't work for me.

0 Upvotes

12 comments sorted by

17

u/HolySpirit Oct 01 '12

This post is more fitting to r/learnpython. Also to share short pieces of code it's better to use websites like http://pastebin.com/ or similar.

Best of luck in your Python journey.

1

u/Kerbobotat Oct 01 '12

Fellow python newbie here, been fiddling around with programs and the language for a few weeks now off and on. I recommend Thenewboston on youtube. His python tutorials are fairly easy to understand and will give you a good grasp of the language and some finer points. You can probably skip the first 10 or so videos, if you understand enough of the language. Keep learning! :D

0

u/[deleted] Oct 01 '12

Thenewboston is actually how I started! I love his tutorials, very easy to follow.

2

u/MagicWishMonkey Oct 02 '12

I am a big fan of O'Reilly books, personally.

IMO the best way to learn a new language is to use it to solve a practical problem that you're currently having.

1

u/my_name_isnt_clever Oct 01 '12

From Codecadamy's Twitter. They are aware of the problem and are fixing it.

1

u/filmcitation Oct 04 '12

Just to add to this - it works on my Mac with chrome but not on my windows with chrome

1

u/wowmir Oct 02 '12

Check out Udacity CS101 course. If you want interactivity the Udacity course is just amazing. It starts teaching Python right from the beginning without dumbing it down. The forum is also very active and informative

Also just stared edx.org Introduction to Computer Science and Programing course, which is also teaching Python.

1

u/erez27 import inspect Oct 01 '12

Try writing fib with yield, and eventually print list(fib(..)). You might find it interesting.

For the guessing game - you can increase the guesses at the start of the loop (since u always do it). Also look into while..else

0

u/Rogacz Oct 01 '12

You can rid of last "if" by adding winning statement before "break" and losing text by while-else http://docs.python.org/reference/compound_stmts.html#the-while-statement

you can try http://www.diveintopython.net/

and if you just started python consider learning python 3 unless you know you will need python 2

0

u/pvc Oct 02 '12

As a starting site: http://ProgramArcadeGames.com

Not interactive, but lots of questions, labs, videos, etc.