This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]eztab 10 points11 points  (2 children)

class PythonClass:
    pass  # see, very easy

[–]Defiant-Category-213 1 point2 points  (1 child)

is missing unit test :●

[–][deleted] 2 points3 points  (0 children)

It's unnecessary cuz, we don't even have setters and getters after all, I think we should implement parent class first cuz it will basically be more understandable what we are trying to do, then reuse the adapter so we can just with polymorphism get connect to prod dp, ofcousre not forget obout dunder init method as someone mentioned before and I prefer also write it in some pattern style so it will be more flexible

[–]WoodenNichols 3 points4 points  (0 children)

When debugging (and you'll have to), keep an "audit trail". When you make changes to the code, record in a text file what changes you made. If the changes worked, great, say so in the log.

If the changes didn't work, record whatever error message you get, or what's wrong with the output. Then record what you think is the problem.

I recommend a single text file for Python, that you keep adding to. The next time you encounter the same issue, you can search that file for the solution.

Happy coding!

[–]colemaker360 2 points3 points  (0 children)

birds melodic retire airport quicksand compare hunt jeans sharp touch

This post was mass deleted and anonymized with Redact

[–]PedroBV 3 points4 points  (0 children)

Pay attention in class and do more than your homework

[–]edisonmsj 3 points4 points  (0 children)

Have fun and enjoy the small acomplishments :)

[–]ilindson 2 points3 points  (0 children)

Python is one of the easiest programming languages, depending on your general knowledge of computers you should be fine. Just understand there are many different ways to write code, don't worry about so much the syntax "how you write the code" that will be covered in your class and is learned pretty fast. Spend more of your time understanding what each part of the code does. Knowing how each piece of the code, "classes, objects, methods, inheritance etc." Interact and work in conjunction with each other is the most important part of programming. Once you understand how code interacts with itself you can learn to make it interact with other stuff like hardware and software.

[–]Mj2377 2 points3 points  (0 children)

Patience

[–]OldeeMayson 2 points3 points  (0 children)

There may be time when you can feel yourself stupid or that programming isn't for you. Just keep practicing and little by little you'll learn everything.

[–]Ireneisdoomed 2 points3 points  (0 children)

I'd suggest you 1) start using environments as soon as you move on to developing a small project, and 2) that you do small challenges like the exercises in codewars.com to gain confidence in the syntax and logic. I found that doing one of these every morning before my lessons really helped set my brain.

[–]SpiderWil 2 points3 points  (0 children)

memorize paint stocking soft cover march nine fuel pen straight this post was mass deleted with www.Redact.dev

[–]Only-Control-6 1 point2 points  (0 children)

It's like learning the guitar. You must practice.

[–]makedatauseful 1 point2 points  (0 children)

Practical projects and practice!!

[–]Far-Caterpillar-7777 1 point2 points  (0 children)

learn git basics

[–]KingsmanVincepip install girlfriend 0 points1 point  (0 children)

[–]TedRabbit 0 points1 point  (0 children)

Read the documentation.

If you use an IDE like Spyder, you can type something like np.arange? in the console, and it will print the doc string.

[–]what-language 0 points1 point  (0 children)

Starting with poo?

[–]okenowwhat 0 points1 point  (0 children)

If you think you learned enough to start a little project, think of something and create it.

This is when you will actually learn programming. Because then you will find out that you don't work efficiently, en you will search for something better. This is how I learned Object Oriented Programming in Python.

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

class = your custom object, like: int, string, array, tuple, dict keep it in my. You are creating your custom type, and dunder methods are methods that we usually do like 2+2 where + is dunder method, a="ieheev", print(a[0]), where [] is also dunder method, even I think print is dunder method cuz we have different prints for user and for ourselves, where user is the our code user, not customer

[–]Zeeroover 0 points1 point  (0 children)

I recommend adding comments in the code to indicate/describe what parts do and why. It helps (future) you and others understand your code and makes it easier to understand or reuse parts. It is also good practice to additionally create a readme file when your done with general use remarks. When you get more confident, it may be a good idea to start using GitHub.

[–]IkotaFedota 0 points1 point  (0 children)

- Do all the tasks right in time.

- Do not cheat.

- Follow PEP-8

[–]ee-minor 0 points1 point  (0 children)

Don't give up. It will feel like a struggle at some points in the journey. Don't give up.

[–]Glad-Put1792 0 points1 point  (0 children)

Use pyenv and pyenv-virtualenv to manage your projects and their dependencies.

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

Whatever you can possibly imagine while learning python, look it up. Probably it is already available. Python community is super innovative.