A Python Basics Review For Today… A review of Jupyter basics [follow along on your computer if you’d like] Variables Numbers and Strings A Review of Week 1 Homework Booleans
A Python Basics Review Variables Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable
A Python Basics Review Variables Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable
A Python Basics Review Variables Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable
A Python Basics Review Variables Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable
A Python Basics Review Variables, continued… Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable What will this return?
A Python Basics Review Variables, continued… Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable What will this return? What will this return?
A Python Basics Review Variables Variable: a named unit of data that is assigned a value. the name of the variable [equals sign] the value of the variable What is the value of my_answer?
A Python Basics Review Variables, continued… Variable: a named unit of data that is assigned a value. Re-assigning variables and assigned to this variable [equals sign] this gets evaluated first
A Python Basics Review Variables, continued… Variable: a named unit of data that is assigned a value. Re-assigning variables and assigned to this variable [equals sign] this gets evaluated first What’s x?
A Python Basics Review Variables, continued… Variable: a named unit of data that is assigned a value. Re-assigning variables and assigned to this variable [equals sign] this gets evaluated first What’s x? What’s x?
A Python Basics Review Variables, continued… Variable: a named unit of data that is assigned a value. Re-assigning variables and assigned to this variable [equals sign] this gets evaluated first What’s x? What’s x? What’s x?
A Python Basics Review Numbers Floating point numbers are numbers that contain decimal points. Integers are all positive and negative whole numbers, including 0.
A Python Basics Review Numbers Floating point numbers are numbers that contain decimal points. Integers are all positive and negative whole numbers, including 0. WE WON’T DEAL WITH COMPLEX NUMBERS IN THIS CLASS
A Python Basics Review Strings Numbers are a variable type that store uh, numbers. Strings are a variable type that stores text. …but you can’t just throw some letters into a variable and hope for the best!
A Python Basics Review Strings Numbers are a variable type that store uh, numbers. Strings are a variable type that stores text. …rather, you need to enclose your string in quotes! Single or double, it doesn’t matter. ‘a string’ “a string”
A Python Basics Review Booleans Named after the nineteenth-century mathematician George Boole, Boolean logic is a form of algebra in which all values are reduced to either TRUE or FALSE.
A Python Basics Review Booleans Named after the nineteenth-century mathematician George Boole, Boolean logic is a form of algebra in which all values are reduced to either TRUE or FALSE.
A Python Basics Review Booleans Named after the nineteenth-century mathematician George Boole, Boolean logic is a form of algebra in which all values are reduced to either TRUE or FALSE.
A Python Basics Review Important Advice #3… Help one another (and not only at 1:29pm on Fridays!) This is a much, much better way than email to get a hold of me in this class!