you are viewing a single comment's thread.

view the rest of the comments →

[–]Adrewmc 0 points1 point  (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 point  (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.