[Tutor] books (for postage)

2018-10-27 Thread Alex Kleider
I have the following gathering dust on my shelf: The Python Standard Library by Example by Doug Hellmann 3rd printing May 2012 Dive Into Python by Mark Pilgrim 2004 Learn Python the Hard Way (2nd Edition) by Zed A. Shaw June 2011 If anyone wants any or all of them, I'm happy to se

[Tutor] Turtle graphics - was Re: (no subject)

2018-10-27 Thread Alan Gauld via Tutor
On 27/10/2018 12:09, Jesse Stockman wrote: > Hi there Hi, Please always provide a meaningful subject line. Also always include the output of your program, especially if its an error message - these are full of useful information. > I need to draw a patten with turtle in python 3.7 but > I cant

Re: [Tutor] (no subject)

2018-10-27 Thread Bob Gailer
On Oct 27, 2018 7:48 AM, "Jesse Stockman" wrote: > > Hi there > > I need to draw a patten with turtle in python 3.7 but I cant get it to work here are the specs of the pattern and my code so far can you please help Thank you for asking for help. It would help us if you were more specific. "Can't

Re: [Tutor] (no subject)

2018-10-27 Thread boB Stepp
Greetings! On Sat, Oct 27, 2018 at 6:48 AM Jesse Stockman wrote: > > Hi there > > I need to draw a patten with turtle in python 3.7 but I cant get it to work > ... What is the problem? Describe what you expected to happen, what did happen, and *copy and paste* the Traceback that Python generat

Re: [Tutor] Python 3.6 update?

2018-10-27 Thread Jim
On 10/25/18 5:30 PM, Mats Wichmann wrote: On 10/25/2018 03:07 PM, Jim wrote: Mint 18.1 Default python3 = 3.5 Python 3.6 installed for use by a virtual environment. Update manager just informed me of an update for python 3.6 to 3.6.7-1. When I started to install it, I got a dialog saying: thi

Re: [Tutor] How to print lines within two timestamps

2018-10-27 Thread Alan Gauld via Tutor
On 27/10/2018 10:28, Asad wrote: > C:\Python27\python.exe D:/QI/test_qopatch.py > Traceback (most recent call last): > 2018-10-22 10:21:15 > File "D:/QI/test_qopatch.py", line 32, in > 2018-10-22 10:21:25 > newtime = datetime.datetime.strptime ( a[0], '%m/%d/%y %H:%M:%S' ) > ['04/26/18 06:1

[Tutor] (no subject)

2018-10-27 Thread Asad
Hi All , I found a logic : 1.initialize print flag to false 2. Save starting and ending times in variables 3. loop to read or process sequential lines in the file a. See if line contains time b. If it does, extract time c. Compare time in line to starting time d. If line time is gre

[Tutor] (no subject)

2018-10-27 Thread Jesse Stockman
Hi there I need to draw a patten with turtle in python 3.7 but I cant get it to work here are the specs of the pattern and my code so far can you please help • Specifications of the pattern o The radius of the three heads is 10. o The length of legs is 30. o The length of the sizes of the two

Re: [Tutor] How to print lines within two timestamp

2018-10-27 Thread Alan Gauld via Tutor
On 27/10/2018 08:02, Asad wrote: >>> string = f3.read () >>> regex = re.compile ( "\n" ) >>> st = regex.sub ( " ", string ) >> >> I suspect regular string methods would be simpler here. >> answer : can you please provide the code to replace above st = string.replace("\n"," ") >>> if re.search ('

[Tutor] How to print lines within two timestamp

2018-10-27 Thread Asad
On Sat, Oct 27, 2018 at 4:01 AM wrote: > Send Tutor mailing list submissions to > tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/tutor > or, via email, send a message with subject or body 'help' to >