Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: py4e book exercise not working when compiled
Post: RE: py4e book exercise not working when compiled

Solved! Problem with spaces inside the string, probably from a copy/ paste from the book. Once I re-spaced the entire string, it all worked.
adriand Homework 11 8,794 Jun-13-2018, 01:01 PM
    Thread: py4e book exercise not working when compiled
Post: RE: py4e book exercise not working when compiled

Yes, the first time I executed the code from a file. Then tried the interpreter and posted it here - reply #3 Same results in both cases... Thanks for being so responsive and helping me figure this ou...
adriand Homework 11 8,794 Jun-09-2018, 04:37 PM
    Thread: py4e book exercise not working when compiled
Post: RE: py4e book exercise not working when compiled

I see... How common is to run the same code and encounter different results? I'm searching for a solution on the debian forums as well, maybe it's a package issue
adriand Homework 11 8,794 Jun-09-2018, 03:34 PM
    Thread: py4e book exercise not working when compiled
Post: RE: py4e book exercise not working when compiled

(Jun-09-2018, 01:09 PM)Larz60+ Wrote: I'm using windows but that shouldn't be an issue. how did you install python? You should update using version 3.6.5 follow instructions here: https://python-for...
adriand Homework 11 8,794 Jun-09-2018, 01:26 PM
    Thread: py4e book exercise not working when compiled
Post: RE: py4e book exercise not working when compiled

thanks! this is why it's confusing and I'd like to understand why the different results before I move on with the course. this is what I get Python 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 2...
adriand Homework 11 8,794 Jun-09-2018, 12:51 PM
    Thread: py4e book exercise not working when compiled
Post: py4e book exercise not working when compiled

Hi, this exercise in the Py4E course should print: 21, 31, uct.ac.za. When I run the program (python3 filename), my results are: 21, -1, uct.ac.za Sat Jan  5 09:14:16 2008. Can someone tell me why...
adriand Homework 11 8,794 Jun-09-2018, 12:22 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020