Hi Mr. Robinette, I was hoping you could grade my work. I've done everything except Ap lab 6.1 and game lesson 2-4. I even redid My ap unit 7 frq p2 and p3 to get the full 20/20. I'm not looking for an A, not even a B, I just want to pass the class and would love it if you're able to grade my assignments. Thank you and have a nice summer. From, Matt Martin
@manastandel6647 Жыл бұрын
Hey Mr. Robinette whats up
@Herobrinepleaz9 Жыл бұрын
great video!
@mgmanalys5 жыл бұрын
hi , help-me... import smtplib, sys, os def check(host,port,log,pas,fl): try: s = smtplib.SMTP(host,port, timeout=10) s.ehlo() s.starttls() s.ehlo() s.login(log,pas) fl.write("{0}:{1}:{2}:{3} ".format(pas,log,host,port)) s.close() except smtplib.SMTPAuthenticationError: print(host,"Incorrect login/password") except smtplib.SMTPServerDisconnected: print(host,"Unable to connect") # This is used to clean result file. #os.remove("checked.txt") fl = open("checked.txt", "a") if len(sys.argv) < 2: print ("Usage: smtpchecker.py smtps.txt") with open(sys.argv[1],'r') as smtps: for line in smtps: smtp = line.split(":") check(smtp[2],int(smtp[3]),smtp[1],smtp[0],fl) fl.close() -------------------------------------- line 27, in <module> check(smtp[2],int(smtp[3]),smtp[1],smtp[0],fl) IndexError: list index out of range --------------------------------------