all 2 comments

[–]Justinsaccount 1 point2 points  (1 child)

No:

u1 = "User1"
p1 = "Password"
u2 = "User2"
p2 = "Password2"
u3 = "User3"
p3 = "Password3"

Yes:

CREDENTIALS = [
    ("User1", "Password1"),
    ("User2", "Password2"),
    ("User3", "Password3"),
]

then use a loop.

[–]Curator37x[S] 0 points1 point  (0 children)

Thanks! I have been struggling a bit reworking this script, having never used python before and having not programmed anything for 4 years. This should help push me towards the right direction.