Login Register


Python Tutorial 1.st tutorial filter_list
Author
Message
Python Tutorial 1.st tutorial #1
Helloo HACKCOMMUNITY <3

Im back, and i wont to post this good tutorial ! Smile
This is first tutorial soon i will post more ! Smile

here you will know some basic stuffs about Python..

Now lets start ! Smile

First download Python from here : Python Download

HERE IS Some basic commands :
Quote:print shows text between " " on the screen
input - with this command you can type only number
raw_input withs this comand you can type words but no numbers
# this is for coments
This is for this tutorial

When you install it open your notepad if you have notepad++ open it it is better !Smile

type in notepad

print "This is my first programe"

Save this as: something.py

Now lets see what this is for..

This is command which shows you a text berween " " .

Lets type our first programe and see how its works:

Quote:print "Calculator" # Shows calculator on the screen

a = input ("Type some number here =") # Show msg "Type some number here ="
b = input ("Type another number here =") # Show secong msg..

c = a + b # This will add number that we type in string a and nuber from string b and the result will bre C .

print c # This shows c result on the screen...

This is our first programe and i hope that you see what this do..
This is calculator only for adding, now we will type a calculator for basic math operations...

Quote:print "Calculator" #Show msg Calculator
a=input ("Type some number here =")
b=input ("Type second number =")
c = a + b #c is result for addition a and b
d = a - b #this will substract a and v
e = a / b #this is division a and b
f = a * b #this is multiplication for a and b
print "Addition = ", c #Show msg for addition which we call c!
print "Substract = ", d # Show msg for substract,we call it d !
print "Divison = ", e #Show msg for Div, we call it e !
print "Multiplication = ", f #Show msg for multiplication, we call it f ...

This is basic calculator in other tutorials i will show you how to use loops. If, Else, Elif, While Smile
[Image: 1308031172619.gif?w=356&h=140]
Don't learn to hack, hack to learn.

Reply

RE: Python Tutorial 1.st tutorial #2
you know what , really now i'm going to try Python , because you gave the DL link Biggrin Biggrin Biggrin
if you posted without it , um really not care about that , coz i don't know Python ,
But now um gonna start ,
Thanks Buddy , Smile
[Image: Wfxdx.png]

Reply

RE: Python Tutorial 1.st tutorial #3
I like python very much mann....... now,I'm learn SET code for reference to make my own tool....Wink

Reply

RE: Python Tutorial 1.st tutorial #4
python is one of my favorite language man
[Image: 143827,xcitefun-thanks-1.jpg]

Reply

RE: Python Tutorial 1.st tutorial #5
CAn you help me learn network programing in python.I want to make a multi client chat server .......

Reply

RE: Python Tutorial 1.st tutorial #6
Learn it your self. Find some ebooks, buy some books, and use youtube ! Biggrin
[Image: 1308031172619.gif?w=356&h=140]
Don't learn to hack, hack to learn.

Reply

RE: Python Tutorial 1.st tutorial #7
Cool tutorial. I have studying Python like half year and i'm able to write some code now.
I like use python's own code editor (IDLE/Python GUI), but sometimes notepad is better, but anyway good tutorial
[Image: honk.gif]

Reply

RE: Python Tutorial 1.st tutorial #8
or watch my channel for python tutorials Smile

Reply

RE: Python Tutorial 1.st tutorial #9
Nice tutorial man! Great for starters like me! Smile

Reply







Users browsing this thread: