[Tutor] new line to list of strings send by email

2016-01-08 Thread Emil Natan
Hello list, I have a function which receives a string and sends it as a body of an email. It is a part of a program which does certain checks on network infrastructure. When a check fails I append error message to a error_collector list: if self.check_axfr_refused(ip): error_collector.appe

Re: [Tutor] Hi Dear!

2016-02-04 Thread Emil Natan
On Thu, Feb 4, 2016 at 2:49 PM, Alexa kun wrote: > Hi Dear! > I newbie and read 2.1.2. Interactive Mode > https://docs.python.org/3/tutorial/interpreter.html > > but when I type > > >>> the_world_is_flat = True > >>> if the_world_is_flat: > ... print("Be careful not to fall off!") > > I got a

Re: [Tutor] beginning encryption

2018-04-19 Thread Emil Natan
if char != alphabet: should be if char not in alphabet: Otherwise you are comparing char with alphabet. What you want to do if to check if char is in alphabet. Emil On Thu, Apr 19, 2018 at 2:39 AM, Roger Lea Scherer wrote: > I am absolutely stumped. I've tried a number of different scenarios