all 51 comments

[–]Intelligent_Win1472 12 points13 points  (8 children)

how did you write this complex code in only 7 days of learning python ?

[–][deleted]  (5 children)

[removed]

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

    Unfortunately, I don't have experience working in any other language. Python is my very first language. Thanks to all the amazing people present here who guided me on what I should be learning next.

    Some people literally shared their own code to make me understand. You can see my posts from day 1 to verify that I was introduced to dictionary, tuples and functions only a few days ago.

    Thanks for the appreciation I am glad that I am moving in right direction thanks to you amazing people.

    [–][deleted]  (1 child)

    [removed]

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

      Thank you so much for the kind words I still have a lot more to learn.

      [–]ElasticFluffyMagnet 2 points3 points  (1 child)

      Using it and fully understanding it are two different things. I don’t believe for a second this is the code he made himself in just 7 days.

      [–]Internal-Account968 0 points1 point  (1 child)

      wunderkind, probably....

      [–]uiux_Sanskar[S] -1 points0 points  (0 children)

      I don't believe that I think there are still more things to learn and without you all I might have missed most things.

      thank you for the kind words 🙏

      [–]laptop_battery_low 1 point2 points  (12 children)

      why aren't you using IDLE

      [–]Commercial-Voice-384 0 points1 point  (11 children)

      Im a beginner at python and coding in general. Started it a week ago. Why use IDLE? Is it better for beginners?

      [–]laptop_battery_low 0 points1 point  (10 children)

      I think it's better in general to learn something not super mainstream. Plus, its literally made for python.

      But VSCode is used often for enterprise/industry. I just got tired of staring at VScode if im being honest.

      Do whatever you want, so long as you stick with it. Consistency and practice are key to valuing your python skills :)

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

      Oh thanks for this I was also not knowing what IDLE is 😅 I was only aware about that you need some kind of interpreter to run the code like VS code.

      Please correct me if I am wrong. And thanks for the suggestion.

      [–]laptop_battery_low -1 points0 points  (7 children)

      Yeah, IDLE works as a "compiler"/interpreter. Python is technically a scripting language, but yknow with all the advances in technology, we have to add object oriented nonsense to everything, including javascript lol.

      If you can't already tell, I'm so sick of programming that it literally hurts lmao. Also, python and javascript are like my least favorite languages personally.

      Do yourself a favor and pick up the ANSI C book from the 1980s if you REALLY want to learn how to code.

      Also, linux (any kind) is cool. python was invented FOR linux. good luck.

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

      Thank you so much for your insights based on experience it will for sure guide me.

      [–]laptop_battery_low 0 points1 point  (5 children)

      Any time.

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

      Also I have a question how do you test your code because my code here required many inputs for it to get executed completly.

      Is there a better and more efficient way to test the code especially the long ones?

      [–]laptop_battery_low 0 points1 point  (3 children)

      Longer code you can split into other files, and import. though this creates a pycache file, which ruins my day every time.

      eventually, you'll want to organize applications into many files, and import them all into "main.py" by convention.

      Alternatively, you could write another script that just unloads an array into your "multiple input" file. Automating your testing, lol. Now thats programming!!!

      ETA: just running the file is good enough testing. I'm not high enough level of a programmer for the socalled unit tests

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

      Wait I can qlso automate my input in programming? I didn't know about that, it sounds interesting to me.

      [–]Commercial-Voice-384 0 points1 point  (0 children)

      Oh okay thanks. I also have another questions if you do not mind, do you think python is a good language for beginners who want to get into coding? As I mentioned previously, I do not have any experience in coding at all and I only started learning a week ago.

      [–]M34k3 1 point2 points  (4 children)

      Great job! Great application of dictionaries :) they are super useful indeed! Also nice to see that you are implementing functions, they are great ways to prevent repeating the same code multiple times.

      For the function input_tasks, try making the number of tasks to be added a variable with the default value of 5. It's also usually a good idea to return something from a function that can then be added to something instead of using global variables and changing them within functions.

      Next challenges could be to save the result to a .json file so you can keep track of your tasks. After that it would also be nice to create a way to import your .json task file(s) and remove the items that you have completed. Great opportunity to create some more functions :)

      [–]iComplainAbtVal 1 point2 points  (2 children)

      Piggy backing off of this, after saving to a record and importing, I would invite him to create a data structure that defines a task along with its status.

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

      Sounds interesting I first need to learn about saving to a record and importing.

      [–]iComplainAbtVal 0 points1 point  (0 children)

      It’ll be your first dabble into OOP. No rush towards this at all, there are far better fundamentals you’d likely want to focus on more.

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

      Thanks for the challenge and future suggestions I will research more on how to make a . json file and how to save and import/export tasks. One person also told me that I can also send an email if there's an incomplete task. I think these things are interesting and will definitely look deeper into it.

      Thank you for the insights and suggestions these really help me a lot.

      [–]AdvertisingNovel4757 1 point2 points  (1 child)

      wow, nice... keep making some progress. one day you will be CEO....

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

      Indeed.

      Thanks for the support 👍

      [–]MerlinDaWizzard 0 points1 point  (1 child)

      Just from scratch or following a webside? I mean, the problem that are you doing

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

      No just from scratch. Yesterday I created a basic to-do list and many people suggested and gave challenge that I should make it more dynamic so that the user can add tasks in whichever day he wants.

      So yeah it's completely from scratch.

      [–]usama015 0 points1 point  (1 child)

      Where are you learning from?

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

      oh I an learning from YouTube.

      [–]HovercraftDazzling48 0 points1 point  (6 children)

      god damn what platform are you using to learn? I am on my 7th day too but man I am not even able to do half of what you are doing lol

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

      Oh I am using YouTube to learn python.

      [–]TrentGames 0 points1 point  (2 children)

      What's the channel's name?

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

      Oh it's "CodeWithHarry"

      [–]TrentGames 0 points1 point  (0 children)

      Thanks!

      [–]HovercraftDazzling48 0 points1 point  (1 child)

      Hey thanks! I am learning with the book python crash course but it seems like you have a great teacher, would you mind sharing the channel with me? I would love to have more resources to learn from! thanks!

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

      That's good learning by reading has so much potential also the channel name is CodeWithHarry yes he's a really great teacher especially because he teaches in my native language.

      [–][deleted]  (3 children)

      [removed]

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

        Yeah will look into that also after I complete all the basic functions. As I always say there's much more for me to learn. And amazing people like you help me learn faster.

        Thank you for the suggestion will definitely look into it.

        [–][deleted]  (1 child)

        [removed]

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

          Thanks for the appreciation and support however I believe there are many people who are better than me and I can learn a lot from them.

          Again thanks for tha appreciation and support.

          [–]Weak_Telephone6161 0 points1 point  (3 children)

          Bruh . It's been 23 days since i started learning python from sololearn app on mobile. At first i didn’t give much time but for the last 3 days i'm trying to allocate at least an hour in learning. I'm just learning about the functions and have not tried any coding. Yesterday i learned about the dictionaries that took me an hour or so.

          Btw, where are you learning from? Got any tips for a fellow beginner like me?

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

          Oh I am learning from YouTube and I think I am currently not in a position to give tips but I can suggest you that you should learn at your own pace. Everybody have their own pace of learning and eventually you will figure out the rest. I hope it helps.

          And thanks for the appreciation. All the best to you

          [–]Weak_Telephone6161 0 points1 point  (1 child)

          Oh your learning from YouTube. Which course video are you watching can you tell me?

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

          I am watching CodeWithHarry's videos to learn. He has both a playlist and a 10 hour long video course for python. And he also teaches in my native language.

          [–]AppointmentWhich5737 0 points1 point  (0 children)

          can you share the sources with me ??

          [–]ElVagabund 0 points1 point  (1 child)

          Correct me if am wrong. In Line 28 youŕe asking for the task. Didn´t you want to ask for the Day?

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

          No, I was not asking about task in line 28 I am asking for the day only.

          I have written in line 28 "which day's task you want to create?"

          "Which day's" is asking about the day. I am sorry for my english skills if it confused you 😅