Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: My first project as a beginner
Post: RE: My first project as a beginner

(Feb-26-2023, 11:35 PM)deanhystad Wrote: Why the error post? I don't see any error and your code works fine for me. After running your program, paste the clipboard contents into something. This i...
lil_e General Coding Help 4 1,166 Feb-27-2023, 08:19 AM
    Thread: My first project as a beginner
Post: RE: My first project as a beginner

(Feb-26-2023, 06:38 PM)snippsat Wrote: The code dos not output anything only manipulate text that is in Clipboard in Windows If add print(text) will see the output. # py_copyclip.py import pyperclip...
lil_e General Coding Help 4 1,166 Feb-27-2023, 08:18 AM
    Thread: My first project as a beginner
Post: My first project as a beginner

Hi. I'm trying to learn Python by reading the book called "Automate the boring stuff", and have written my first project which I have copied from the book. It's supposed to copy text from a clipbo...
lil_e General Coding Help 4 1,166 Feb-26-2023, 04:58 PM
    Thread: "Name is not defined" when running a class
Post: RE: "Name is not defined" when running a class

Everything seems to be working now. The code looks like this after saving Thanks again! # survey.py - page 223 class AnonymousSurvey(): """Collect anonymous answers to a survey question.""" ...
lil_e General Coding Help 6 4,226 Jan-12-2023, 11:57 PM
    Thread: "Name is not defined" when running a class
Post: RE: "Name is not defined" when running a class

Have now edited the method show_results as well def show_results(self): """Show all the responses that have been given.""" print("Survey results:") for response in self.respons...
lil_e General Coding Help 6 4,226 Jan-12-2023, 11:44 PM
    Thread: "Name is not defined" when running a class
Post: RE: "Name is not defined" when running a class

Do you mean like this? Maybe I misunderstood because I get the same traceback as last time. def show_question(self): """Show the survey question.""" print(self.question)Error:NameErr...
lil_e General Coding Help 6 4,226 Jan-12-2023, 11:29 PM
    Thread: "Name is not defined" when running a class
Post: "Name is not defined" when running a class

Hi. I'm a beginner trying to figure out why my code won't work. I'm pretty sure it's a minor detail, but I tried several time, but cannot find out why **huh** I'm trying to make a program that runs...
lil_e General Coding Help 6 4,226 Jan-12-2023, 11:10 PM
    Thread: My code displays too much output when importing class from a module
Post: RE: My code displays too much output when importin...

Thank you for fast reply! Appreciate it. It was very helpful **smile**
lil_e General Coding Help 4 1,222 Oct-21-2022, 09:24 PM
    Thread: My code displays too much output when importing class from a module
Post: My code displays too much output when importing cl...

Hi. This is my first post ever in a Python forum, and I'm a beginner so please bear with me **rolleyes** I have two sets of codes called restaurant.py and test_restaurant.py My purpose is to use ...
lil_e General Coding Help 4 1,222 Oct-21-2022, 08:58 PM

User Panel Messages

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