New Python user

For the discussion of Perl, Python, Ruby, and PHP and other interpreted languages.

New Python user

Post by Tenth_Prime on Sun Aug 24, 2008 5:05 am
([msg=10354]see New Python user[/msg])

ok, so i just got python, but i haven't the faintest idea as to where to begin. anypointers?
Binary - It's Digitalicious! - http://www.nickciske.com

I thought the code ended in a zero...

I am the α
and I am the Ω
Tenth_Prime
Experienced User
Experienced User
 
Posts: 50
Joined: Sat Aug 09, 2008 5:20 pm
Blog: View Blog (0)


Re: New Python user

Post by Sharmz on Tue Aug 26, 2008 2:48 pm
([msg=10505]see Re: New Python user[/msg])

The Python Website has very good tutorials both for new and experienced programmers. I recommend every programmer reading this How to Think Like a Computer Scientist it deals with the logistics of programming and the article deals mostly in Python.

Good luck!
"You must be the change you wish to see in the world."
-Mohandas Karamchand Gandhi
"Be nice to nerds. Chances are you'll end up working for one."
-Bill Gates
Sharmz
New User
New User
 
Posts: 41
Joined: Thu May 29, 2008 1:18 am
Blog: View Blog (0)


Re: New Python user

Post by Tenth_Prime on Wed Aug 27, 2008 2:01 pm
([msg=10552]see Re: New Python user[/msg])

Sharmz wrote:The Python Website has very good tutorials both for new and experienced programmers. I recommend every programmer reading this How to Think Like a Computer Scientist it deals with the logistics of programming and the article deals mostly in Python.

Good luck!



thanks, ima go check these resources out.
Binary - It's Digitalicious! - http://www.nickciske.com

I thought the code ended in a zero...

I am the α
and I am the Ω
Tenth_Prime
Experienced User
Experienced User
 
Posts: 50
Joined: Sat Aug 09, 2008 5:20 pm
Blog: View Blog (0)


Re: New Python user

Post by SeachMall on Fri Sep 19, 2008 2:32 am
([msg=12013]see Re: New Python user[/msg])

Also, might I recommend you choose a project to begin coding. In my opinion its very difficult to learn a language if you don't have a goal set. For example, I created a blackjack game when learning Python and it sped up the process two or three fold. If you just read tutorials you'll forget half of what you learned but if you put it into use you're more likely to remember it :ugeek:
Image
User avatar
SeachMall
New User
New User
 
Posts: 15
Joined: Wed Sep 17, 2008 5:11 pm
Location: Ireland
Blog: View Blog (0)


Re: New Python user

Post by Tenth_Prime on Fri Sep 19, 2008 3:21 am
([msg=12015]see Re: New Python user[/msg])

that is a very good thought you put out, so what is a good starting program?
Binary - It's Digitalicious! - http://www.nickciske.com

I thought the code ended in a zero...

I am the α
and I am the Ω
Tenth_Prime
Experienced User
Experienced User
 
Posts: 50
Joined: Sat Aug 09, 2008 5:20 pm
Blog: View Blog (0)


Re: New Python user

Post by SeachMall on Fri Sep 19, 2008 9:33 am
([msg=12029]see Re: New Python user[/msg])

Tenth_Prime wrote:that is a very good thought you put out, so what is a good starting program?

I did a blackjack program, I'm still working on it with GUIs and other stuff, and its a good starting project in my opinion. Its a simple project and only gets as complicated as you want it to and so I'd recommend something like that.

If you're on *nix you could do some simple scrips for backing up files or something like that. Think of what you want to learn programming for and break it down to its core and start there.
Image
User avatar
SeachMall
New User
New User
 
Posts: 15
Joined: Wed Sep 17, 2008 5:11 pm
Location: Ireland
Blog: View Blog (0)


Re: New Python user

Post by lambda0 on Tue Sep 23, 2008 4:25 pm
([msg=12380]see Re: New Python user[/msg])

Tenth_Prime wrote:ok, so i just got python, but i haven't the faintest idea as to where to begin. anypointers?

http://www.ibiblio.org/swaroopch/byteofpython/read/

I managed to pick it up in about a week and a half with that. Do the examples, alter the examples, find out what breaks the examples, expand upon the examples, move on. Lovely language.
User avatar
lambda0
New User
New User
 
Posts: 20
Joined: Sun May 04, 2008 7:00 am
Blog: View Blog (0)


Re: New Python user

Post by Tenth_Prime on Thu Sep 25, 2008 9:11 am
([msg=12513]see Re: New Python user[/msg])

lambda0 wrote:
Tenth_Prime wrote:ok, so i just got python, but i haven't the faintest idea as to where to begin. anypointers?

http://www.ibiblio.org/swaroopch/byteofpython/read/

I managed to pick it up in about a week and a half with that. Do the examples, alter the examples, find out what breaks the examples, expand upon the examples, move on. Lovely language.



a week and a half? i'm on it!!
Binary - It's Digitalicious! - http://www.nickciske.com

I thought the code ended in a zero...

I am the α
and I am the Ω
Tenth_Prime
Experienced User
Experienced User
 
Posts: 50
Joined: Sat Aug 09, 2008 5:20 pm
Blog: View Blog (0)


Re: New Python user

Post by thedotmaster on Thu Sep 25, 2008 1:02 pm
([msg=12518]see Re: New Python user[/msg])

Hey there,
Firstly just in case you need help with executing your code - use cmd/bash.
Windows:
Code: Select all
C:\> script.py

Linux:
Code: Select all
$ python script.py


Save your scripts as .py

I disagree with the guys above. The first step is to learn the foundations (the boring bits). Ignore these and while you might get onto the exciting stuff quicker, you'll get into bad habits and you won't become a good coder.
After that, I recommend picking a little project and working on it.
Why not try:
+ Noughts and Crosses
+ Paper, Scissor, Stone
+ Blackjack
+ A To-Do list / Calendar
+ A web vulnerability scanner

and when you're a little more advanced:
+ A peer-to-peer instant messengering script
+ A chess game
+ An artificial intelligence script.

There are countless more, but remember, if there's a problem with it or an imperfection - don't say "oh well it works alright", say "ahhhh must fix, must make better!!!".
Hacking is all about striving towards the perfect system - it's not a reachable goal, but that makes it all the more fun.

Also, I picked a lot of my Python up from wikibooks and the byte of python.
Ohhh and remember, it doesn't take a week to learn python - it takes years.
Image
User avatar
thedotmaster
Contributor
Contributor
 
Posts: 984
Joined: Sun May 04, 2008 4:39 pm
Location: North West UK
Blog: View Blog (1)


Re: New Python user

Post by SeachMall on Sat Sep 27, 2008 9:37 am
([msg=12638]see Re: New Python user[/msg])

thedotmaster wrote:I disagree with the guys above. The first step is to learn the foundations (the boring bits). Ignore these and while you might get onto the exciting stuff quicker, you'll get into bad habits and you won't become a good coder.
While I do agree with needing to pick up the theory of coding early on when you start you just want to code, reading about it might just kill your passion if you can't see it in effect.

Learn the basics of coding and while working on a project read a book on coding (Code Craft gets my recomendation). This way you get the best of both worlds :geek:
User avatar
SeachMall
New User
New User
 
Posts: 15
Joined: Wed Sep 17, 2008 5:11 pm
Location: Ireland
Blog: View Blog (0)


Next

Return to Interpreted Languages

Who is online

Users browsing this forum: No registered users and 0 guests