chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


Python Tutorial 1 filter_list
Author
Message
Python Tutorial 1 #1
Python is a pretty fucking epic language. It's very useful and you'll see alot of good scripts written in it. I'm going to start you off with the usual "Hello World". Open up notepad and type:

Code:
print "Hello world"

Now save it as test.py in the user directory of your user. For example mine is /Users/AnonFW so I would save it there. Now open up command prompt and type test.py and hit enter. It will run your script.

Output:
Code:
Hello world

Describing what the code does:
The code simply prints out Hello world.
Code:
print
print is simply saying print what is inside the qoutes.
As you guessed with common sense what is inside the qoutes will be the output in the command prompt.
(This post was last modified: 01-17-2013, 07:50 PM by Edward.)

Reply

RE: Python Tutorial 1 #2
I've been trying to learn Python with the help of Z teaching me. I remember him teaching me this, like 3 weeks ago.

Reply

RE: Python Tutorial 1 #3
(01-18-2013, 02:54 AM)Atmospheric Wrote: I've been trying to learn Python with the help of Z teaching me. I remember him teaching me this, like 3 weeks ago.

We need to pick that back up! XD

Reply

RE: Python Tutorial 1 #4
(01-18-2013, 02:54 AM)Atmospheric Wrote: I've been trying to learn Python with the help of Z teaching me. I remember him teaching me this, like 3 weeks ago.

It's one of the best scripting languages besides perl and ruby IMO. Keep trying and I hope to see what you can do.

Reply

RE: Python Tutorial 1 #5
(01-18-2013, 02:58 AM)Zealotry Wrote:
(01-18-2013, 02:54 AM)Atmospheric Wrote: I've been trying to learn Python with the help of Z teaching me. I remember him teaching me this, like 3 weeks ago.

We need to pick that back up! XD

Kenny if you offer to teach me i'll start doing it. I'm slow in the head you should know that, I need a teacher.

Reply






Users browsing this thread: 1 Guest(s)