One Pager Cheat Sheet
- This lesson covers the use of
variablesto store information, and the basics ofmath operationsin programming languages. - Variables are used to
store and manipulate datain a programming language by using theassignment operator(equal sign(=)) toassign valuesto the variable. - Variables can be directly initialized as
numberwith value12on both Python and JavaScript interpreters. - No valid JavaScript variable name must start with a letter, underscore (_), or dollar sign ($) and
follow camelCase naming conventionfor proper syntax. - The value stored in
variable cis equal to 10. - Programming languages allow us to perform various mathematical operations using basic arithmetic operators such as addition, subtraction, multiplication, division, modulus and exponentiation.
- You can
directlyperform math operations in Python, and save the result in new variables if needed. - Python is a powerful tool which offers rich functionality, including specific operations such as
floor division(//), which can be used to perform complex calculations. - In Python, additional mathematical operations not available with simple operators
can be accessedthrough the Python math library by including animportstatement into the program. - The
Math.sqrt()function is used to calculate the square root of 36 and added to 10, producing an output of 16. - The output of the
console.log()in JavaScript is9due to--cbeing a decrement operator after variablesaandbwere both assigned values. - Mastering basic programming concepts such as
variablesandmathematical operatorsis important as they are the building blocks for further programming techniques.



