TEACHERS
GALLERY
PRICING
SIGN IN
TRY ZURU
GET STARTED
Loop
Audio
Interval:
5s
10s
15s
20s
60s
Play
1 of 17
Slide Notes
Download
Go Live
New! Free Haiku Deck for PowerPoint Add-In
Python Vs JavaScript
Share
Copy
Download
0
70
Published on Nov 30, 2015
No Description
View Outline
MORE DECKS TO EXPLORE
PRESENTATION OUTLINE
1.
PYTHON VS JAVASCRIPT
Created by Karmen Lawson
Photo by
tinyfroglet
2.
Python
Python is much less complicated than JavaScript and much easier to understand.
Photo by
Terriko
3.
For example, in JavaScript, if you want to define a variable, you have to type:
Photo by
JoshuaDavisPhotography
4.
var Example = 6
Photo by
Catwomancristi
5.
Something along those lines.
In Python, you don't have to use the command var;
Photo by
geroyche
6.
Example = 8
Photo by
srdgato_
7.
Python's data types don't use the concept of 'mutability'. Some data types cannot be modified;
Photo by
tinyfroglet
8.
Any modification returns a new value, but does not modify the value in the original variable.
Photo by
kestrana
9.
Other types, like lists, can be modified in place.
In general, it's not necessary to think about this distinction when writing Python code;
Photo by
LJWDevon
10.
The various types behave as one would intuitively expect. JavaScript, on the other hand, has no concept of mutable vs. immutable.
Photo by
Catwomancristi
11.
JavaScript:
In JavaScript, you often have to use two parentheses () at the end of a line to make if work.
You also need a lot of brackets.
Photo by
peasap
12.
In Python, you don't.
Photo by
Terriko
13.
In Python, you don't use nearly as many.
In JavaScript, there are two ways to create a new identifier.
Photo by
Will Montague
14.
The keyword function foo(…) {} declares a new function, and the var keyword declared a new variable.
Photo by
Terriko
15.
Variable declarations do not need initial values: var foo; means foo gets the initial value of undefined.
Photo by
Dave Catchpole
16.
As you see, Python and JavaScript are two very different ways of coding.
They have many differences, but are pretty much used for a lot of the same things.
Photo by
vociferous.
17.
THANKS FOR WATCHING
Merci boku ✨
Photo by
harold.lloyd
HΩRSΣQUΔҜΣ
×
Error!