Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Tutorial]Python programming part.1, a tutorial to learn python by steps easy to use noob friendly too :D
post Feb 13 2009, 09:13 PM
Post #1

tony2108



Master
Group Icon

Group: Elite Members
Posts: 212
Joined: 15-May 08
From: LLocahost
Member No.: 637,925






In this tutorial you'll learn a few things abotu python programming software

1st step:
So now go to start menu, find python and run the program '"IDLE" (Stands for Integrated Development Environment) it's like C++

IDLE is the basic tool you'll be working with. Try some codes.explore the python IDLE environment

2nd step:
Type the following and press enter: (don't type >>> as it should already be there)

CODE
print "Hello, world"


You just created a program, that prints the words 'Hello, World'. The IDLE environment that you are in immediately compiles whatever you have typed in. This is useful for testing things, e.g. define a few variables, and then test to see if a certain line will work.
Now moving to another part of programming which is maths...

3rd step:
type these stuff:
CODE
>>> 1 + 1
2

>>> 20+80
100
>>> 18294+449566
467860
(These are additions)
>>> 6-5
1
(Subtraction)
>>> 2*5
10
(Multiply, rabbits!)
>>> 5**2
25
(Exponentials e.g. this one is 5 squared)

>>> print "1 + 2 is an addition"
1 + 2 is an addition
(the print statement, which writes something onscreen)
>>> print "one kilobyte is 2^10 bytes, or", 2**10, "bytes"
one kilobyte is 2^10 bytes, or 1024 bytes
(you can print sums and variables in a sentence.
    The commas seperating each section are a way of
    seperating clearly different things that you are printing)

>>> 21/3
7
>>> 23/3
7
>>> 23.0/3.0
7.6666...
(division, 2nd time ignoring remainder/decimals,
    3rd time including decimals)
>>> 23%3
2
>>> 49%10
9
(the remainder from a division)


these are the basics. You might learn in school about -,*,+ etc.

QUOTE
eg.
command name example output
+ Addition 4+5 9
- Subtraction 8-5 3
* Multiplication 4*5 20
/ Division 19/3 6
% Remainder 19%3 5
** Exponent 2**4 16


Remember that thing called order of operation that they taught in maths? Well, it applies in python, too. Here it is, if you need reminding:

1. parentheses ()
2. exponents **
3. multiplication *, division \, and remainder %
4. addition + and subtraction -
ok that's what you should know about maths in python let's move further:

Now about comments:
4th step:
type:
CODE
>>> #I am a comment. Fear my wrath!


A comment is a piece of code that is not run. In python, you make something a comment by putting a hash in front of it. A hash comments everything after it in the line, and nothing before it. So you could type this:

CODE
>>> print "food is very nice" #eat me

food is very nice

(a normal output, without the smutty comment,
thankyou very much)

>>># print "food is very nice"

(nothing happens, because the code was after a comment)

>>> print "food is very nice" eat me

(you'll get a fairly harmless error message,
because you didn't put your comment after a hash)


Comments are important for adding necessary information for another programmer to read, but not the computer. For example, an explanation of a section of code, saying what it does, or what is wrong with it. You can also comment bits of code by putting a # in front of it - if you don't want it to compile, but cant delete it because you might need it later.

Part 2 later ^^


--------------------

Colosus productions Presents working and clean hacks,cracks & cheats "Colosian" project

_______________________ _$$$$$$$___ _______
________________________$$$$$$$$$$_______ _
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$$$$___
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$$$$$
___________________________$$$$$$$$$$_____
_________________________$$$$$$$$$$$$$$$__
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
__$$$$$$__ ________________$$$$$$$_________
Go to the top of the page
 
+Quote Post
post Feb 13 2009, 09:13 PM
Post #

Elite Membership


To get the most out of MmorpGuides.com, please view the following information.












Already a Member?

With an Elite Membership you can. . .

  • Reach the highest levels in no time
  • Have one of the most powerful characters in your game
  • Become a valuable member of your clan or guild
  • Become part of a caring and helpful community of gamers

Elite Members enjoy. . .

  • 1,660+ Cheats - tons of working, high quality cheats
  • 1,550+ Guides - We have one of the most comprehensive collections of guides on the net
  • 539+ Bots and macros - Level up quickly, even while you sleep!
  • A chance to win free prizes such as an amazing Playstation 3! And free gold and powerleveling!

No risk, only huge benefits!

  • Your investment can pay for itself in days!
  • Earn gold that you can trade for real money
  • Sell your high level items and characters for a profit!
  • Get tons of expensive guides and cheats in one spot for one small price

Money Back Guarantee!

Not 100% satisfied? We have a 24 hour, money-back guarantee! Contact us for a prompt and courteous refund!

Upgrade to an Elite Membership now!

Not A Member?

Join today and get access to all these great features!

  • Access to newly submitted cheats and guides
  • Download newly submitted bots and macros
  • Chat about your favorite game
  • Submit working content for a FREE Elite Membership!
  • And lots more!
Register Today!
Go to the top of the page
 
Quote Post
post Feb 13 2009, 09:33 PM
Post #2

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






Hmm...

I like it. grin.gif

But I don't like Python.sad.gif


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Feb 14 2009, 10:09 PM
Post #3

tony2108



Master
Group Icon

Group: Elite Members
Posts: 212
Joined: 15-May 08
From: LLocahost
Member No.: 637,925






aww why ?:(
python is easier than C++ :D


--------------------

Colosus productions Presents working and clean hacks,cracks & cheats "Colosian" project

_______________________ _$$$$$$$___ _______
________________________$$$$$$$$$$_______ _
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$$$$___
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$$$$$
___________________________$$$$$$$$$$_____
_________________________$$$$$$$$$$$$$$$__
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
__$$$$$$__ ________________$$$$$$$_________
Go to the top of the page
 
+Quote Post
post Feb 15 2009, 05:23 AM
Post #4

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






No reason, just don't. grin.gif


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Feb 15 2009, 10:20 AM
Post #5

tony2108



Master
Group Icon

Group: Elite Members
Posts: 212
Joined: 15-May 08
From: LLocahost
Member No.: 637,925






well what kind of programming language do you like?:)


--------------------

Colosus productions Presents working and clean hacks,cracks & cheats "Colosian" project

_______________________ _$$$$$$$___ _______
________________________$$$$$$$$$$_______ _
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$$$$___
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$$$$$
___________________________$$$$$$$$$$_____
_________________________$$$$$$$$$$$$$$$__
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
__$$$$$$__ ________________$$$$$$$_________
Go to the top of the page
 
+Quote Post
post Feb 15 2009, 11:27 AM
Post #6

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






HTML!
LOLZ, just kidding.

I rather enjoy Java, now that I can understand it, to an extent.
Although, TBH, I'm not much of a programmer. ;o


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Feb 23 2009, 04:28 PM
Post #7

tony2108



Master
Group Icon

Group: Elite Members
Posts: 212
Joined: 15-May 08
From: LLocahost
Member No.: 637,925






hehe now you talked about java i found a javascript that allows you to edit php texts ^^
i am not a programmer either i am bored of programming but it's allways good to learn new stuff :D


--------------------

Colosus productions Presents working and clean hacks,cracks & cheats "Colosian" project

_______________________ _$$$$$$$___ _______
________________________$$$$$$$$$$_______ _
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$$$$___
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$$$$$
___________________________$$$$$$$$$$_____
_________________________$$$$$$$$$$$$$$$__
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
__$$$$$$__ ________________$$$$$$$_________
Go to the top of the page
 
+Quote Post
post Feb 26 2009, 11:33 PM
Post #8

runemoder234



Advanced
****

Group: Members
Posts: 62
Joined: 24-February 09
Member No.: 846,888






help me i want to make an auto miner for runescape because im not elite and cant get one (and cant afford elite) but i have never done this befor and dont understand any of it if i want to make the mouse keep clicking what would i do??

here is a list because im dumb (true that)

-were do you get python
-how do you get it to click somewhere on the screen
-how do you get it to start
-what do you do to make it detect colors
-what are you talking abut addition


--------------------
if you want to face me in the dule arena send me a pm and we can get a time to face im a lvl 63 ?(working on new account)

my friends pm to be added
-i have none
-you if you want

paid advertisment... sucks

im typing randome coments because im board

worlds great excuses(pm me if you have others)
-my dog ate my homework
-my religon bans math
-but a dog beat me over a fence
-i have short term mero.. what was i talking about again
-i thought you wanted a low score like golf

i will make you a bot if you teach me how(please help)
Go to the top of the page
 
+Quote Post
post Feb 28 2009, 03:51 PM
Post #9

tony2108



Master
Group Icon

Group: Elite Members
Posts: 212
Joined: 15-May 08
From: LLocahost
Member No.: 637,925






ok python has changed since 3.0 version came out. Coding in it it's harder because there are new coding scripts like print "hey everyone" now is print ("hey everyone")
and others like that. I'll post my new tutorial for Python 3.x versions because when i first got in here i plagiarised this tut xD
But a some time after i created my own one ;)
I'll post a new topic for coding in 3.x that might help you because i am also testing python language, i hate coding so i am trying to learn ^^


--------------------

Colosus productions Presents working and clean hacks,cracks & cheats "Colosian" project

_______________________ _$$$$$$$___ _______
________________________$$$$$$$$$$_______ _
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$$$$___
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$$$$$
___________________________$$$$$$$$$$_____
_________________________$$$$$$$$$$$$$$$__
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
__$$$$$$__ ________________$$$$$$$_________
Go to the top of the page
 
+Quote Post
post Mar 4 2009, 06:23 AM
Post #10

mistikman



Egotistical Sociopathic Perfectionist
Group Icon

Group: Moderator
Posts: 1,398
Joined: 2-July 07
From: Never never land.
Member No.: 353,738






Plagiarism is never good man. :/
Oh well, let's hope you write a good guide! grin.gif


--------------------
SIGNATURE!

Go to the top of the page
 
+Quote Post
post Apr 12 2009, 06:43 PM
Post #11

tony2108



Master
Group Icon

Group: Elite Members
Posts: 212
Joined: 15-May 08
From: LLocahost
Member No.: 637,925






ok you won't believe what i just did...
i was writing the guide to a topic i made and then the electricity went down. Everything i wrote disappeared and now i have to start all over again! T_T shocked.gif
I'll try to write it again ...


--------------------

Colosus productions Presents working and clean hacks,cracks & cheats "Colosian" project

_______________________ _$$$$$$$___ _______
________________________$$$$$$$$$$_______ _
________________________$$$$$$$$$$$_______
_________________________$$$$$$$$$$$$$$___
__________________________$$$$$$$$$$$_____
_____________________________$$$$$$$$$$$$$
___________________________$$$$$$$$$$_____
_________________________$$$$$$$$$$$$$$$__
________________$$$______$$$$$$$$$$$$$$___
______________$$$$$$$$_____$$$$$$__$$$$$__
_____________$$$$$$$$$$_____$$$$____$$$$$_
___________$$$$$$_$$$$$$$$__$$$$______$$$$
__________$$$$$_____$$$$$$$$_$$$$_______$$$
___ _____$$$$$_________$$$$$$$$$$$$_______$$$
_______ $$$_____________$$$$$$$$$$$________$$$
_____$$$__ ______________$$$$$$$$$$________$$$$$$
__$$$$$$__ ________________$$$$$$$_________
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 


> Board Footer
Time is now: 22nd March 2010 - 02:03 PM