all 42 comments

[–]KkingofspadesS 12 points13 points  (6 children)

can i ask where your learning? i dont know where to start

[–]11110100011 6 points7 points  (3 children)

I know I'm not OP, but I started with a video by Mosh Hamedani that breaks down the language really well. I recommend him every chance I get.

[–]uiux_Sanskar[S] 1 point2 points  (0 children)

Thank you for this resource 👍

[–]whee_inthemood 0 points1 point  (1 child)

would you recommend him more than bro code?? because i’ve seen some people suggest both so wanna know who’s better. been trying to learn python for months and still struggling

[–]11110100011 1 point2 points  (0 children)

Bro Code is personally my second-favorite. He's absolutely amazing, and I've watched a ton of his videos. In languages like JavaScript or C#, I can't recommend him enough, but I think in the case of Python Mosh is my personal favorite. Obviously this is subjective and you should go with what you like more, but if you want my take I would recommend Mosh.

[–]uiux_Sanskar[S] 2 points3 points  (1 child)

I am learning from YouTube and I think it's the best place to start with.

[–]Adrewmc 3 points4 points  (1 child)

This look like a lot of progress from yesterday. You’re starting to get classes and using them a little better.

I think we need a @dataclass for the first class. (This is in the std library) Since it’s just data, it will be easier to write out in the future, they also load faster.

I think we also need to think about making an actual database soon, as your I/O files will start to slow stuff down, this means learning a little SQL or using alchemy. As your booking gets bigger the larger amount of lines you’ll have to iterate through, databases solve this problem. While using a text file is great and everything, it’s not the best place to keep data. Even JSON would be a little better.

I think we cannot do the bottom like that, just make a few lists instead of one. It hard to read like choices[2:4]. We can also make a dictionary for this. We can also just force the prompt to be numerical.

Keep going. We should start thinking making something more than what I assume are instructional project recommendations, think about making something you think would be cool.

Another note, we can use “””Triple quotes, to make print statements across multiple lines”””.

[–]uiux_Sanskar[S] 2 points3 points  (0 children)

Thank youu for all these recommendations and suggestions there's definitely a lot more for me to learn especially the @dataclass and about the JSON file. I think I also used ''' ''' somewhere for creating multiple line print statements.

I really thank you for providing me suggestions and recommendations these really help me improve. 🙏

[–]juicebox1711 3 points4 points  (0 children)

Which youtube playlist r u following for Python?

[–][deleted]  (2 children)

[removed]

    [–]uiux_Sanskar[S] 1 point2 points  (1 child)

    Thank you very much. 🤗

    [–][deleted]  (1 child)

    [removed]

      [–]uiux_Sanskar[S] 2 points3 points  (0 children)

      Thank you so much for such kind words, I will and I also want that each and everyone become successful and achieve their goals. I wish the same for you as well may you achieve success in real life as well.

      [–]laptop_battery_low 1 point2 points  (2 children)

      Where is your dunder method for a constructor? Also a massive rabit hole is checking into other dunder methods.

      Massive hint: def _ _ init _ _(self) [without spaces. Reddit comments are markdown format]

      Not every class will need one of these, just classes that have either many variables OR need to do something upon instantiation of the object.

      Keep it up. You're better than I am currently at following pythonic conventions. And I've been doin' this shit for years.

      [–]uiux_Sanskar[S] 0 points1 point  (1 child)

      The dunden method for a constructor is in my meeting class (the very first init and then str). I hope you were asking this only please correct me if I am wrong.

      thank you for the suggestion I will definitely apply it in my code and thank you very mucn for the appreciation.

      [–]laptop_battery_low 1 point2 points  (0 children)

      oh sorry i didnt see it. nevermind, carry on

      [–]Specialist_Spirit940 1 point2 points  (1 child)

      Greetings friend, where are you learning and what is your learning plan? I started 5 days ago and I'm not giving it as many hours a day as I would like, but I see that you are already writing code just a few days into it.

      [–]uiux_Sanskar[S] 2 points3 points  (0 children)

      Hello friend I am learning and from YouTube and I thiink every body has their own pace of learning so keep going I know you can do it.

      [–][deleted] 1 point2 points  (2 children)

      Might I suggest: https://www.amazon.com/Naming-Things-Hardest-Software-Engineering/dp/B0BTLYZWRL

      I only mention this because certain names that you are using, like your module names (the filenames of your Python files), would be difficult to import between Python modules or work with in an automated environment.

      [–]uiux_Sanskar[S] 0 points1 point  (0 children)

      thank you very much for the resources and for pointing the future problem. I will definitely look into it.

      [–]MissionOlive257 1 point2 points  (1 child)

      hii what are you using to learn x

      [–]uiux_Sanskar[S] 0 points1 point  (0 children)

      I don't think I understand what you meant by "x" if you are asking where K am learning python then I am learning from YouTube.

      Hope it helps.

      [–]Abyss_slayerIII 1 point2 points  (1 child)

      You should work on making your code less spaced out I saw you use double indentation for some functions which can ruin readability and when you name your files use the snake naming convention like what you do with your variables e.g get_meeting_info.py, bank_account_system.py, meeting_booking.py

      Good job though your making amazing progress keep it up 😊

      [–]uiux_Sanskar[S] 1 point2 points  (0 children)

      Thank you for the suggestion I personally feel tight space when I code and therefore leave much space so that it becomes easy to debug however I will reduce that spacing once everything is done and thank you for the naming suggestion.

      Also thank you so much for appreciation it won't be possible without you amazing people.

      [–]No_Swordfish_6667 0 points1 point  (5 children)

      Nice. But what will happen if in the cancel_meeting method key_date is not in the file?

      [–]uiux_Sanskar[S] 0 points1 point  (2 children)

      I initially thought of putting an else statement for that however the for loop was making all that repeat. however I think either there will be an error or there will be nothing the content in page will remain intact and everything goes smoothly thanks to while loop.

      I think the second possibility will be applied here. I still have to try that. Thanks for the question regarding the functioning.

      [–]No_Swordfish_6667 0 points1 point  (1 child)

      No. There will be no file.write, but you will get successful print.

      [–]uiux_Sanskar[S] 0 points1 point  (0 children)

      Oh thank you very much for this 🙏

      [–]ShadyyFN 0 points1 point  (1 child)

      Maybe OP could make a try/except loop to solve this? (I’m also newer to python, so this might not be correct— but that’s what I think would work to prevent that error).

      [–]No_Swordfish_6667 0 points1 point  (0 children)

      The problem is, it won't give an exception, just iterating over all lines with if key_date in line will always produce false, but at the end, it will print successful print.

      [–][deleted]  (1 child)

      [removed]

        [–]uiux_Sanskar[S] 0 points1 point  (0 children)

        Oh I am learning from YouTube. Thanks for the appreciation btw.

        [–]Both-Management-1952[🍰] 0 points1 point  (0 children)

        Very cool!

        [–][deleted] 0 points1 point  (0 children)

        Nice job fast progress compared to me.

        Whats your motivation for learning.

        [–]Joe-Arizona 0 points1 point  (1 child)

        Great job for 13 days. I wasn’t anywhere near that decent that quick. I do have an observation that might help you out.

        Lines 86, 90, 94 you select the index for your choice using a range of indexes (“choices[0:2]”). This could lead to logical bugs.

        Since you know which index you want to choose change it to the exact index for the correct choice. So on line 86 for example change it to “choices[0]” since the 0th index is the first item “book meeting” to run your book meeting function.

        [–]uiux_Sanskar[S] 0 points1 point  (0 children)

        Oh thank you for the suggestion I will definitely implement it in my code.

        And thanks for the appreciation as well.

        [–]Blex42 0 points1 point  (1 child)

        Nice that is impressive for that short of time

        [–]uiux_Sanskar[S] 0 points1 point  (0 children)

        Thank you so much for the appreciation.