1 of 8

Slide Notes

DownloadGo Live

Python Vs. JavaScript

Published on Nov 30, 2015

No Description

PRESENTATION OUTLINE

PYTHON VS. JAVASCRIPT

BY: MOLLIE KEARNEY

PYTHON

BY: MOLLIE KEARNEY

WHAT PYTHON HAS

  • Capitalize True and False
  • Don't need to declare Variable
  • To write a comment use: # or ""
  • When finding Length of word you use: len("hey")
  • Python uses indention for Code Blocks
Photo by eGuidry

MORE FOR PYTHON

  • Python supports much bigger programs
  • nothingness: none
  • For numbers: int(integers) Decimal
  • Source code for strings ASCII
  • List and Tuple for array/list
Photo by jenwikehuger

Brackets
{curly} Dictionaries, or sets
[Square] create lists

JAVASCRIPT

WHAT JAVASCRIPT HAS

  • Don't need to capitalize True and False
  • To make a comment you need the //
  • Need to declare the variable (var=eggs)
  • Nothingness=null
  • To find the length you need a.length

MORE JAVASCRIPT

  • The numbers are +infinity-infinitysnd NaN
  • Source code for JavaScript is UTF-16
  • Uses {curly} brackets for Code Blocks
  • [Square] brackets are for array/lists
Photo by kjetikor