Sinisterly
What kind of all Python programming tutorials do you want to see posted here? - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Python (https://sinister.li/Forum-Python)
+--- Thread: What kind of all Python programming tutorials do you want to see posted here? (/Thread-What-kind-of-all-Python-programming-tutorials-do-you-want-to-see-posted-here)



What kind of all Python programming tutorials do you want to see posted here? - darkninja1980 - 01-31-2019

What kind of all Python programming tutorials do you want to see posted here?
Please posts your requests down below.


RE: What kind of all Python programming tutorials do you want to see posted here? - SickPsycko - 01-31-2019

I want to know why this is giving me an error:
Code:
with open(args.combo) as combof:    for line in combof: userpass = line.split(':') print userpass[0] print userpass[1]        with open(args.proxy) as proxyf:            for pline in proxyf:                proxyp = pline.split(':')                print proxyp[0]                print proxyp[1]

Error it's giving me:
Code:
 File "test.py", line 34    with open(args.proxy) as proxyf:                                   ^ IndentationError: unindent does not match any outer indentation level
I didn't post full code rest is just argparse


RE: What kind of all Python programming tutorials do you want to see posted here? - Nyx - 01-31-2019

So you couldn't have just made 1 thread titled "What programming tutorials would you guys like to see" asking people what kind of programming tutorials from all languages they'd like to see, you had to make one for every single language board on here and they're all identical just with the name of the language changed.... Oh wait that's right, if you didn't spam your threads you wouldn't get nearly as much NSP... smh


RE: What kind of all Python programming tutorials do you want to see posted here? - darkninja1980 - 01-31-2019

(01-31-2019, 06:08 PM)SickPsycko Wrote: I want to know why this is giving me an error:
Code:
with open(args.combo) as combof:    for line in combof:        userpass = line.split(':')        print userpass[0]        print userpass[1]        with open(args.proxy) as proxyf:            for pline in proxyf:                proxyp = pline.split(':')                print proxyp[0]                print proxyp[1]

Error it's giving me:
Code:
 File "test.py", line 34    with open(args.proxy) as proxyf:                                   ^ IndentationError: unindent does not match any outer indentation level
I didn't post full code rest is just argparse

what kind of IDE are you using when you code in Python? Also, you might be getting a syntax error. you can see if there any yellow caution triangles. Maybe there are too many spaces in your code. You might have to Also trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files.


RE: What kind of all Python programming tutorials do you want to see posted here? - SickPsycko - 01-31-2019

(01-31-2019, 06:37 PM)darkninja1980 Wrote:
(01-31-2019, 06:08 PM)SickPsycko Wrote: I want to know why this is giving me an error:
Code:
with open(args.combo) as combof:    for line in combof:        userpass = line.split(':')        print userpass[0]        print userpass[1]        with open(args.proxy) as proxyf:            for pline in proxyf:                proxyp = pline.split(':')                print proxyp[0]                print proxyp[1]

Error it's giving me:
Code:
 File "test.py", line 34    with open(args.proxy) as proxyf:                                   ^ IndentationError: unindent does not match any outer indentation level
I didn't post full code rest is just argparse

what kind of IDE are you using when you code in Python? Also, you might be getting a syntax error.  you can see if there any yellow caution triangles. Maybe there are too many spaces in your code. You might have to Also trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files.

I figured it out. You can use
Code:
python -m tabnanny yourscript.py
To figure out where the tab errors are. It was because I copied and pasted from terminal to Text editor.


RE: What kind of all Python programming tutorials do you want to see posted here? - darkninja1980 - 02-01-2019

(01-31-2019, 11:53 PM)SickPsycko Wrote:
(01-31-2019, 06:37 PM)darkninja1980 Wrote:
(01-31-2019, 06:08 PM)SickPsycko Wrote: I want to know why this is giving me an error:
Code:
with open(args.combo) as combof:    for line in combof:        userpass = line.split(':')        print userpass[0]        print userpass[1]        with open(args.proxy) as proxyf:            for pline in proxyf:                proxyp = pline.split(':')                print proxyp[0]                print proxyp[1]

Error it's giving me:
Code:
 File "test.py", line 34    with open(args.proxy) as proxyf:                                   ^ IndentationError: unindent does not match any outer indentation level
I didn't post full code rest is just argparse

what kind of IDE are you using when you code in Python? Also, you might be getting a syntax error.  you can see if there any yellow caution triangles. Maybe there are too many spaces in your code. You might have to Also trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files.

I figured it out. You can use
Code:
python -m tabnanny yourscript.py
To figure out where the tab errors are. It was because I copied and pasted from terminal to Text editor.

that good you fix it. Smile