Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nate Brunelle Today: Values and Types

Similar presentations


Presentation on theme: "Nate Brunelle Today: Values and Types"— Presentation transcript:

1 Nate Brunelle Today: Values and Types
CS1110 Nate Brunelle Today: Values and Types

2 Questions?

3 Last Time Turtles drawing pictures

4 Silly Words Bananana Hippo Lick Bofa Flabberghast plaid

5 Values A “thing” Every value has a type

6 Values and Types Value Type Operators -50 ,0 ,5, 30, 512 int 3+7, 3*7,
3-7, 3/7 0.5, 1.2, float ‘hi’, “hi”, ‘hello world! ✃’ str Print, input function print()

7 Name/Variable/Identifier
[Letter or _] [Letters or _’s or numbers] Things not allowed: Periods, hyphens, spaces, …. name = [value] Assignment operator Gives meaning to the value Other contexts: Refers to the name we defined it to me 3 + name Use the value we assigned in the place of ‘name’

8 Functions Print Input


Download ppt "Nate Brunelle Today: Values and Types"

Similar presentations


Ads by Google