Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Are my descriptions (comments) correct here? [newbie needs help]
Post: RE: Are my descriptions (comments) correct here? [...

(Oct-10-2017, 06:19 AM)buran Wrote: def cheese_and_crackers(cheese_count=20, boxes_of_crackers=30)and then call the function just like cheese_and_crackers()and it will use the default values. Of cou...
MattSS102 General Coding Help 4 3,705 Oct-15-2017, 06:01 AM
    Thread: Are my descriptions (comments) correct here? [newbie needs help]
Post: Are my descriptions (comments) correct here? [newb...

I'm curious what the name of the "slots" are that I mentioned in my comments. These are slots in the function. There are two in the parentheses in this function. This is from an exercise in learn pyt...
MattSS102 General Coding Help 4 3,705 Oct-10-2017, 04:55 AM
    Thread: question on my reading/exercise
Post: question on my reading/exercise

I followed the book (Learn Python the Hard Way) correctly and still my code gets an error. What am I doing wrong? Error: Traceback (most recent call last): File "ex17.py", line 4, in <module>...
MattSS102 General Coding Help 1 2,854 Sep-18-2017, 02:55 AM
    Thread: [newbie] question on what to put in () on target.write
Post: RE: [newbie] question on what to put in () on targ...

(Sep-14-2017, 06:29 AM)Sagar Wrote: You could try: target.write(line+line2) The way the code prints now (from yours) is: "line1line2" How would I write the code so that it printed stacked on top o...
MattSS102 General Coding Help 5 5,349 Sep-14-2017, 11:57 PM
    Thread: [newbie] question on what to put in () on target.write
Post: [newbie] question on what to put in () on target.w...

#I know how to put in line1 variable on line 25 (target.write(line1)), however when I try to put line2 in it I get an error. The error is "function takes exactly 1 argument (2 give). How do you do 2 ...
MattSS102 General Coding Help 5 5,349 Sep-14-2017, 03:33 AM
    Thread: Matt's newb question 1
Post: Matt's newb question 1

I'm working through a book called Learn Python The Hard Way. I'm on an exercise (15) where the author asks you to comment in explanations of what each line of code does. Could you look at my code and ...
MattSS102 General Coding Help 1 2,704 Aug-28-2017, 03:07 AM

User Panel Messages

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