Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: IPython Notebook - How to use a class you have written
Post: RE: IPython Notebook - How to use a class you have...

Thank you so much snippsat!!! I would never have figured this out. And, I will remember nbviewer for future posts I only have 2 questions left that are stumping me. Question #2: least common letter...
moga2003 Homework 2 2,432 Mar-25-2019, 02:40 AM
    Thread: IPython Notebook - How to use a class you have written
Post: IPython Notebook - How to use a class you have wri...

Good evening, I have completed my first code in Ipython Notebook (as MSword file), and now I need to use the class that I wrote the code for to answer 10 questions at the bottom of the notebook that...
moga2003 Homework 2 2,432 Mar-22-2019, 12:41 AM
    Thread: Test Case Assertion Error
Post: RE: Test Case Assertion Error

So sorry for the late response, my computer crashed with a Windows update, and I lost everything. Still trying to get it all back... slowly. Thank you so much for all your help. It is very appreciated...
moga2003 General Coding Help 10 5,496 Mar-18-2019, 01:06 AM
    Thread: Test Case Assertion Error
Post: RE: Test Case Assertion Error

Ok I have removed line 29. Out of all the things I have read online, your explanation is by far the clearest. Thank you so much! When I try to put it in the if statement, I get the following: It is t...
moga2003 General Coding Help 10 5,496 Mar-11-2019, 03:04 AM
    Thread: Test Case Assertion Error
Post: RE: Test Case Assertion Error

so you're saying I don't need line 29? That this if\else\elif should be right underneath the _init_ statement? I was writing this according to the specifics below. I guess reading it wrong because w...
moga2003 General Coding Help 10 5,496 Mar-10-2019, 01:20 AM
    Thread: Test Case Assertion Error
Post: RE: Test Case Assertion Error

ok, I have re-written it. I am a little uncertain if it should be get_values or set_values. When I run the test code, it still returns the same errors. import requests, re from bs4 import Beautifu...
moga2003 General Coding Help 10 5,496 Mar-09-2019, 06:00 PM
    Thread: Strange Python Error
Post: RE: Strange Python Error

metulburr - self._content is a part of the class I am writing code for. When I put the print(type(self._content)) and ran it, it gave me no error. I have never used BeautifulSoup before, and after loo...
moga2003 Homework 3 3,427 Mar-09-2019, 02:17 AM
    Thread: Strange Python Error
Post: Strange Python Error

Good evening, When running my code, it is giving me an error that I am not understanding as it has lines referenced that I don't have. My code only has 234 lines, but the error is referencing things...
moga2003 Homework 3 3,427 Mar-09-2019, 01:17 AM
    Thread: Test Case Assertion Error
Post: RE: Test Case Assertion Error

ichabod801 - ok, I understand what you are saying. But, I am still trying to figure out if the discover is supposed to be as def discover_path(self), then how do I get it to recognize the self._src as...
moga2003 General Coding Help 10 5,496 Mar-09-2019, 12:53 AM
    Thread: Test Case Assertion Error
Post: Test Case Assertion Error

Good evening, I am running the unittest in Python for my code and I am getting errors/Failures. I am unsure how to fix it, or what the errors mean exactly. Can someone explain to me, please? I would ...
moga2003 General Coding Help 10 5,496 Mar-07-2019, 03:39 AM
    Thread: Zero Division Error
Post: RE: Zero Division Error

That did fix the error! Thank you so much!!!
moga2003 Homework 4 3,069 Mar-07-2019, 02:15 AM
    Thread: Zero Division Error
Post: RE: Zero Division Error

I had thought of that, however I have to use this equation: round( tally / self.word_count * 1000). Since it is supposed to return a value due to the multiple text strings being used, I do not underst...
moga2003 Homework 4 3,069 Mar-04-2019, 01:32 AM
    Thread: Zero Division Error
Post: Zero Division Error

Good evening, For my project, I keep getting a Zero Division error when trying to calculate the score below. I can't seem to figure out exactly what I am doing incorrectly. The code snippet is below....
moga2003 Homework 4 3,069 Mar-04-2019, 12:49 AM
    Thread: Python Project
Post: RE: Python Project

ichabod801 - Yes, I posted the whole code (it is a lot), because I am not 100% sure that I missed something in the code previous to the error that could be contributing to my issue. I did not realize ...
moga2003 Homework 2 8,366 Mar-02-2019, 05:21 AM
    Thread: Python Project
Post: Python Project

For my Project, we are having to create a TextAnalyzer class. This is my first try at creating anything this large, and I have confused myself. Right now I am stuck on def avg_word_length. No matter...
moga2003 Homework 2 8,366 Mar-02-2019, 02:36 AM

User Panel Messages

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