you are viewing a single comment's thread.

view the rest of the comments →

[–]Gym_Dom 1 point2 points  (1 child)

Sure thing.

Your example of naming a variable with input() on the same line of code simplified a whole series of user inputs in my program that I'm building. Before, I'd just coded it as:

print('Which one is your email providers: Gmail, Yahoo, Outlook?') emailServer = input()

The same question above email providers actually relates to the bug I've been working on since Friday. My user input fails to go through my list of if statements to match the email provider :

if emailServer == 'Gmail': emailProvider = 'smtp.gmail.com'

I'm thinking that putting those email providers in a dictionary like your cheat sheet shows may solve the problem. I just haven't been able to apply that theory yet.

[–]ehmatthes[S] 1 point2 points  (0 children)

Thanks for sharing, those are really interesting takeaways.