Download presentation
Presentation is loading. Please wait.
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 Silly Bubble Jiggle Blub Plumbus
5
Values A “thing” 5, ½, Every value has a type
6
Values and Types Value Type Operators 5, 10, 0, 319, -30 int
3+7, 3-7, 3*7, 3/7 0.5, 10.0 float , , 11.5*12.3, 3.2/9.8 ‘hi’ str ‘hi’+’bye’ bubble variables = print input function (): do the thing
7
Name/Variable/Identifier
[Letter or _] [Letters or _’s or numbers] Things not allowed: Periods, hyphens, spaces, …. name = [some 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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.