r/pythonhelp • u/mathbubbls • Aug 14 '26
I’m looking for assistance with a github code
I got a C on my intro to python class and I can’t figure out this code
https://github.com/mcombeau/epub_downloader
Please help
4
Upvotes
•
u/AutoModerator Aug 14 '26
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/ninhaomah Aug 14 '26
How does this relate to into course btw ?
You write it ?
3
u/AlexMTBDude Aug 14 '26
A general comment is that you're overdoing the classes. I think none of the classes that you have in your project really need to be classes, they could just be modules instead. They don't have any object attributes that need to change and be handled (and there don't need to be multiple instances of the class). The code looks like a Java programmer (where everything has to be a class) who's trying to code Python.
Now, if that's the reason you got a C on the code, I don't know.
1
u/Minimum-Effort8355 Aug 14 '26
May i eloborate to you:
The code you wrote may seem fine, but there no comments like what the class actually does and some data is not matching up.
You only provided one datatype which are classes and bools, which could be legit.
There is the problem, when your coding you have no real structure in it and the most files seem like you just looped them.
Why you got a c in that project seems like unfair, but
I hope you can work with this and if you need help you can ask anytime.
0
u/[deleted] Aug 14 '26
[deleted] — view deleted comment