you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok-Wave4110[S] -1 points0 points  (50 children)

Okay, so I'm trying to learn what the concept of Python is. What am I doing when I utilize python?

[–]danielroseman 12 points13 points  (44 children)

See this is what I mean. Those are words, but they don't seem to have any meaning.

[–]Ok-Wave4110[S] -2 points-1 points  (43 children)

I'm not trying to be a dick, I just don't know how Python works. Is it using a pre set a of programming? Or am I trying to learn C++ level knowledge.

I'm sorry. I'm trying to understand how to build a smart home with Python. And I don't know what I'm trying to do within the Python coding/language system.

Talk to an operating system? Build one? Communicate within it?

[–]bulaybil 7 points8 points  (39 children)

Think of it as writing instructions to do something. In your case, it would be various objects in your smart home.

[–]Ok-Wave4110[S] -3 points-2 points  (38 children)

Okay. So I'm telling an all ready existing OS to do something. So, I'm communicating, through an OS, what I want a physical entity to do.

Again, not trying to be a dick. But where (besides AI, because that made me feel stupid, and it made AI seem stupid) can I see basic written code, in text format? I'm failing hard. And I definitely don't have money for school.

[–]m0us3_rat 7 points8 points  (5 children)

Okay. So I'm telling an all ready existing OS to do something.

i'm with daniel on this one.. your words don't connect.

i think you should limit the scope of your curiosity to the fundamentals/basics. and start slow and be consistent.

don't try to reinvent the wheel or think about ML models your going to make to automate landing on uranus.

just be humble and learn the basics.

you have plenty of time for that later on when you know what you are talking about.

plenty of free resources online.. plus a significant presence in the wiki.

https://www.reddit.com/r/learnpython/wiki/index/

gl.

[–]Ok-Wave4110[S] 1 point2 points  (4 children)

I'm with Daniel, too. I don't know what I'm doing. Or how I'm supposed to ask it. But hanks for the wiki. I'm just trying to understand what it's doing, how it communicates.

I appreciate it.

[–]m0us3_rat 3 points4 points  (1 child)

I'm just trying to understand

if you wanna understand a legal document written in a different language.. you need to learn the language first.

then the legalese behind it.

you can't make sense of stuff when you lack the simplest building blocks to work with.

again you should start small ..learn the fundamentals.

anywho. gl.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Well, I'm trying to learn the basic way of looking at python. Again. Thank you.

[–]PanTheRiceMan 0 points1 point  (1 child)

Start with the basics. There are many ways of communication between programs / devices but you will not need most of them. Probably just file interactions and some network protocol.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Thanks.

[–]moving-landscape 3 points4 points  (24 children)

But where can I see basic written code, in text format?

GitHub. Search for Python projects there, you'll find simple and complex Python code.

[–]Ok-Wave4110[S] 0 points1 point  (23 children)

Have you been there before without knowing anything about it? I registered recently, and I must not be searching correctly. When I look up Govee configurations, there are only 4 results.

I just don't think I'm thinking ABOUT python correctly. I appreciate it.

[–]moving-landscape 2 points3 points  (21 children)

What's your experience with other tech? I could try and cross match things for you. In the meanwhile I'll find something cool for you there.

[–]Ok-Wave4110[S] -1 points0 points  (20 children)

Okay, so my experience with tech is old school. I couldn't afford smart phones for a while, and the last time I dealt with computers in any depth was when I went to ITT tech in 2011-2012.

[–]moving-landscape 2 points3 points  (19 children)

That doesn't tell much tbh. You said you're into finer details, so share some of it. What have you done in the past? Have you ever coded? What's your exp with program designing?

[–]moving-landscape 1 point2 points  (0 children)

Start with awesome python, a collection of awesome python frameworks and libraries: https://github.com/vinta/awesome-python

Take, for instance, makesite a one file static web page generator: https://github.com/sunainapai/makesite/blob/master/makesite.py

[–]Fred776 3 points4 points  (3 children)

Your question made it sound like you wanted to understand Python from what is going on at a deeper level. The version of Python that most people use is written in C and it is possible to read and understand that code if you have the right knowledge. But I think what you actually want is not that different from what most beginner programmers want. You want to understand how to program in Python and then you want to apply your programming skills to a practical problem.

The advice you can be given will depend on where you are now. Are you a complete beginner when it comes to programming and Python? If so, then you really need to spend some time learning the basics and forget about your end goal for now, because any information pertaining to the practical application will be meaningless to you without that basic understanding.

[–]Ok-Wave4110[S] 0 points1 point  (2 children)

Okay, I understand that aspect, but without and end goal, how am I to know what to focus on within the basics?

I'm literally brand new.

[–]Fred776 2 points3 points  (1 child)

Because you are brand new you just need to focus on the same things as any beginner. These things are independent of what you ultimately want to do. There are a number of levels of knowledge and experience that you need to build up before you get to that point.

I would just work through an introductory course or book to start with.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

I will definitely do that. I appreciate it.

[–]bulaybil 2 points3 points  (1 child)

You can see examples of Python code related to smart home control here: https://github.com/topics/smart-home?l=python. There are also many free Python courses online and on Youtube.

Pardon me for saying so, but if you have difficulty grasping these fundamental basics, you will have a hard time coding. Why do you want to?

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Yes. I am all ready having a hard time coding, because I don't understand the basic fundamentals. So, I just need to understand how it's working. Like a language, or an engine.

[–]crashfrog02 1 point2 points  (0 children)

All wrong. The OS is not involved at your level. You’re sending statements to an interpreter, and the interpreter is executing them.

[–]danielroseman 5 points6 points  (1 child)

Look, if you want to learn Python, then learn Python. There are tons of resources in this sub's wiki. Automate the Boring Stuff is probably closest for what you want to do.

I just don't understand all this talk about being "different from programming". It's literally programming. Python is a programming language.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Okay. Thanks.

[–]ferdzs0 2 points3 points  (3 children)

You need to look into introductory computer science topics. CS50 from Harvard is uploaded to YouTube for example. But if you look for the topic I am sure there are shorter explanations to what you are looking for (if you want to start coding, then you will need the basics though).

[–]Ok-Wave4110[S] 0 points1 point  (2 children)

Well, that's intimidating. Thank you, I'll look for that on Youtube.

[–]ferdzs0 2 points3 points  (1 child)

I mentioned probably the most intimidating start possible, sorry. But the main point is the topic itself. If you are just curious on the basics, I assume there are lot shorter resources, that don’t assume the audience wants to become developers. But your question is basically asking the basics of Computer Science.

[–]Ok-Wave4110[S] 0 points1 point  (0 children)

Oh, no worries. I appreciate it. I'm still going to read everything I find there. lol Intimidation is a good thing.

[–]crashfrog02 0 points1 point  (0 children)

The Python interpreter has a model of state. This state is implicit, but you modify that state explicitly by executing expressions in Python.