Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

If i learn the python code, will it teach me how to start developing websites? or only programming?

I want to start to build my own website, so i was wondering if python is the answer to my question?

4 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! If you're wanting to build websites then I believe this track will be best for you. Later on down the line, you can do some more advanced things on the server side with python that will enhance your websites. But those topics are going to be easier you to move into if you first have an understanding of HTML, CSS, and at least a basic understanding of JavaScipt.

Hope this helps! :sparkles:

Hey There, Thanks for your answer, but i already know html and css, it is just that i want to know how to add more advanced features to my website. so is python good for that?

and isn't java script just like python ? but just a different language? all the best, thanks

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi! No, Javascript isn't just like Python. JavaScript can be both run on the server and on the client and is then rendered on the client. Python (in regards to webpages) is run on the server and then shipped back to the client where it is rendered.

Also, if you're going to need things like DOM traversal, I believe you'll need to learn a Python framework. JavaScript has built-in DOM traversal. Really, this depends entirely on what you're planning to do exactly and if what you're looking for is a front-end feature or a backend feature.

Hi! What is DOM traversal? What is A framework and what does it allow you to do?

and if i wanted to build something like for example Instagram ?

please provide me with a answer!

thanks once again.

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

DOM traversal is the ability to move up and down the DOM (Document Object Model) and select the elements based on their relative location to each other.

A framework is an abstraction of a programming language to give particular functionality to aid in software development. Python has at least two frameworks that are taught here at Treehouse: Django and Flask. There are others, of course. JavaScript also has frameworks including (but not limited to) jQuery, Angular, React and Meteor.

If you already know HTML and CSS then my advice to you is to complete the Front End Web Development track. This will teach you about concepts like DOM traversal and the basics of JavaScript. From there, you can start to decide what backend language you'd like to learn. Again, some of this will be your personal preference. You might pick JavaScript, Python, PHP, or even some others to be at the backend.

So for your Instagram app, you will need both front end and back end.

Good luck! :sparkles:

Hey There, thanks for your answer!

Just one last question-

The Track you provided me (front-end) teaches you about not only java , also jquey, ajax and ,any other.

should i learn the basics of java only, so i can have a chance at starting python or do i have to learn the others and learn intermidiet skills of java script or only Beginner?

please provide me with a answer !

and thanks once again!

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi again! The track teaches you about HTML, CSS, and JavaScript. Note the emphasis on JavaScript. Java and JavaScript are two competely different languages that were named similar names due to marketing reasons back when they were being developed.

But to answer your question, I still believe the best route for you is this track. It will make sure your HTML and CSS are solid. Then it will introduce you to JavaScript which can alter your HTML and CSS on the fly. You know HTML and CSS , right? So you know what an unordered list is. Let's say for example that you want each item or <li> to be an image that you pressed "Like" on in the last week. Well this week you may have liked 10 pictures, but last week you liked 20. So how big do you make this unordered list? How many list items does it need? JavaScript will teach you how to alter your webpage so that it will display the correct number of list items no matter how many times that number changes. But, to be fair, there are Python frameworks that will do the same thing. Again, it's personal preference in many cases.

But I'm of the opinion that this is the most gradual ease (and one of the most common) from HTML and CSS into programming for the web. And yes, it will teach you about jQuery and AJAX. These are JavaScript frameworks. They are themselves written in JavaScript and are designed to make certain parts of coding JavaScript a little easier.

That being said, Python also has Django and Flask frameworks which are also taught here at Treehouse and are for web development. But again, make sure your front end skills are solid before you pick a back end. HTML, CSS, and JavaScript are all considered front end web development skills. Although, JavaScript can also do double duty as a back end language. :thumbsup:

Hey There,

Thank you so much for this!

really, amazing service here at tree house!

all the best, Thanks Once Again!

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Rayan Saleh I feel obligated to point out that I am not Treehouse staff and these represent my personal opinions :sparkles:

Jennifer Nordell Yes, I understand but i also think that this is the right way to approach it.

i mean think about it....

your learning how design a website and then you learn how to add features to the website in shorter words!

Thank You

All The Best, Rayan Saleh

Just to add to what has been said, but to clarify a bit, Python is what's called a 'back end' language, whereas JavaScript is predominantly a 'front end' language.

What do those terms mean?

Front end is what the user sees simply put and all the features they can see themselves interacting with; the backend is the stuff they don't see, the databases and the stuff that makes the server do certain things.

JavaScript can do both but the backend stuff is very new, although most likely the future of all web development front and back end. Personally for backend I prefer Python to Js, I prefer Pyramid and Flask to Node and Meteor every day of the week but it's down to preference. Y