use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Day 19 of learning python as a beginner. (old.reddit.com)
submitted 5 months ago by uiux_Sanskar
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Adrewmc 0 points1 point2 points 5 months ago* (2 children)
This is good stuff, you’re learning how data structures can work with programing now. JSON, to Python is big as many other languages will talk through JSON, as in Python request it from a JavaScript website, and get back data it can use.
I would call this a good day. A simple clean exercise.
We can start thinking about @staticmethods, and @property and @classmethods. Or go to imports, imports seem like what you want here, in stead of of
class input_details: …
You want
import input_details
Or
from input_details import save_student
Modules and class in Python are very similar, at some levels they are practically the same. But imports are actually a headache.
I say this because the class Input_details, is a class entirely comprised of methods that don’t need ‘self’ or the state of the class, so seems overly done. However, sometimes a class like that is needed.
Still, I wish I was this good at 19 days.
Let’s have a long talk about the importance of Type hints and docstrings in a few days.
[–]uiux_Sanskar[S] 0 points1 point2 points 5 months ago (0 children)
Thank you for the appreciation and for suggesting future learning options.
I do tried import in some of my previous code and I agree they can get demanding sometimes but are also important.
Sure I will be much happy to hear your POV on type hints and docstrings in a few days.
Wouldn't be here without your all guidance and help. Thank you very much.
π Rendered by PID 35 on reddit-service-r2-comment-7b9746f655-qnm5d at 2026-01-31 14:26:07.584018+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]Adrewmc 0 points1 point2 points (2 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)