Posts by murilo henhique • 1 point
4 posts
-
-4
votes1
answer22
viewsA: smtplib.Smtpserverdisconnected: Connection unexpectedly closed
I found the answer: disable the antivirus email module (Avast, in my case)
-
0
votes1
answer22
viewsQ: smtplib.Smtpserverdisconnected: Connection unexpectedly closed
I was trying to send an email with python: import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText host = 'smtp.gmail.com' port = 587 user =…
-
0
votes1
answer48
viewsA: How do I resolve this "Valueerror" in Python 3?
Your 'n' is worth 4, and ,I did a test, when you put '...for x in range(n)' or '...for x in range(4)', the program understands that the beginning is 0, so it counts, 0, 1 ,2 ,3. which are 4…
pythonanswered murilo henhique 1 -
-4
votes3
answers418
viewsA: How to write a function that takes 2 integers as a parameter and returns the largest of them?
def maximo(n1,n2): if n1 > n2: print(n1) elif n2 > n1: print(n2) else: print(f'{n1} é igual a {n2}') maximo(0,1) …
pythonanswered murilo henhique 1