0

I have an input in this format

someemailadress@outlook.com
someotheremail@outlook.com
nextemail@gmail.com

So I want to get this input from user so when I get the input by:

emails = input("Provide emails")

User just could copy and paste the whole lists of email given one under one, seperarted by new line into this variable so then I can use .splitlines() to get the e-mail to seperate spaces so I can use them for something. For whatever reason it doesn't want to accept such input, when I try to give as little as two e-mail, one after the other, seperated by new line. I get following error

Provide emailsomeemailadress@outlook.com
someotheremail@outlook.com
invoice.nl5a@philips.com
> 
> someemailadress@outlook.com
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'someemailadress' is not defined

why is happening?

0 Answers0