Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: My script returns no values
Post: RE: My script returns no values

[quote="perfringo" pid='132461' dateline='1607093302'] I find it quite disturbing that Google for Education states: [quote]For Google's Python Class, it's best to use Python 2.7. Although Python 3.x ...
Shay3534 Homework 7 3,388 Dec-04-2020, 09:47 PM
    Thread: My script returns no values
Post: RE: My script returns no values

(Dec-04-2020, 02:22 PM)deanhystad Wrote: Your code should return a string, not print a string. Replace the print statements in donuts(), both_ends() fix_start() and mix_up() with code that creates a...
Shay3534 Homework 7 3,388 Dec-04-2020, 02:47 PM
    Thread: My script returns no values
Post: RE: My script returns no values

(Dec-04-2020, 02:22 PM)deanhystad Wrote: Your code should return a string, not print a string. Replace the print statements in donuts(), both_ends() fix_start() and mix_up() with code that creates a...
Shay3534 Homework 7 3,388 Dec-04-2020, 02:46 PM
    Thread: My script returns no values
Post: RE: My script returns no values

Here is how I tested in the interpreter: >>> p = 5 >>> if p <= 9: ... print 'Number of donuts:', p ... elif p >= 10: ... print 'Number of donuts:', 'many' ... Number of do...
Shay3534 Homework 7 3,388 Dec-04-2020, 01:17 PM
    Thread: My script returns no values
Post: RE: My script returns no values

Here is the output from one of the test routines: donuts Number of donuts: 4 X got: None expected: 'Number of donuts: 4' Number of donuts: 9 X got: None expected: 'Number of donuts: 9' Number o...
Shay3534 Homework 7 3,388 Dec-04-2020, 01:14 PM
    Thread: My script returns no values
Post: My script returns no values

Hi, I have just started doing the google python course online and am completing my first assignment by running the string1.py script. I have tested my little routines in the python interpreter and th...
Shay3534 Homework 7 3,388 Dec-04-2020, 01:00 PM

User Panel Messages

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