Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (2)

Powered by Vanilla. Made with Bootstrap.
Python, Useful functions
  • Flashlight
    Posts: 173
    Ok so to continue on with my last paper. I will be teaching you useful python functions.

    1. is the while function, it is used to create loops.
    a=10
    while a >1:
    print a
    a-1
    print \"\"A\" is equal to 1\"

    This would print as follows

    10
    9
    8
    7
    6
    5
    4
    3
    2
    "A" is equal to 1



    Another handy function is def, it is used to define a word as a series of functions.
    def iexploit() :
    print \"iexploit rules\"

    Now if we add iexploit after a function in the same code we will get iexploit printed.
    def iexploit() :
    print \"iexploit rules\"
    iexploit()
    iexploit()
    it can also be looped by doing the following.
    def iexploit() :
    print \"iexploit rules\"
    iexploit()
    iexploit()


    Ok so there are two useful python functions.
  • chroniccommand
    Posts: 1,389
    Moved to Python section.
    And please make guides a bit more informative.
  • It looks as if your just writing these half-ass'ed pieces of shit.
    Why? REP?
    Either way, you didn't even explain the technical side of loops....or go into them that much, LITERALLY anyone could write this guide in like 2 minutes....
  • Yeah, I think you need to add more explanation on this.
  • Bursihido
    Posts: 406
    good tutorial mate :) thanks
  • Xin
    Posts: 3,251
    Good job keep it up bro :)
    Xin
  • undead
    Posts: 822
    Nice tut. Thanks