Hello guys! I've just started coding in python and I was wondering if I could send the output of this to an email address or save just this specific output as a .txt or .pdf file in my computer.
Maybe it's very complicated or very easy, I have no clue. I know I have import email libs and modules and smpt servers but guidance would be helpful as I can't seem to find specific answers on the internet about it. Thank you :)
FOR EXAMPLE:
def example():
s_kgs = input()
s_kgs_int = int(s_kgs)
totals1 = ((s_kgs_int 65) / 100)
totals2 = ((s_kgs_int 75) / 100)
totals3 = ((s_kgs_int * 85) / 100)
print("Example")
print("Row 1: "+format(totals1)+" x 6")
print("Row 2: "+format(totals2)+" x 6")
print("Row 3: "+format(totals3)+" x 6\n\n")
example()
This will be the output and what's going to be send over the email or is going to be saved in my files. (values are wrong but general idea):
Row 1: 65.0 x 6
Row 2: 75.0 x 6
Row 3: 85.0 x 6
Maybe it's very complicated or very easy, I have no clue. I know I have import email libs and modules and smpt servers but guidance would be helpful as I can't seem to find specific answers on the internet about it. Thank you :)
FOR EXAMPLE:
def example():
s_kgs = input()
s_kgs_int = int(s_kgs)
totals1 = ((s_kgs_int 65) / 100)
totals2 = ((s_kgs_int 75) / 100)
totals3 = ((s_kgs_int * 85) / 100)
print("Example")
print("Row 1: "+format(totals1)+" x 6")
print("Row 2: "+format(totals2)+" x 6")
print("Row 3: "+format(totals3)+" x 6\n\n")
example()
This will be the output and what's going to be send over the email or is going to be saved in my files. (values are wrong but general idea):
Row 1: 65.0 x 6
Row 2: 75.0 x 6
Row 3: 85.0 x 6


