Presentation is loading. Please wait.

Presentation is loading. Please wait.

Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything.

Similar presentations


Presentation on theme: "Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything."— Presentation transcript:

1 Values, Types, and Variables

2 Values Data Information Numbers Text Pretty much anything

3 Types All data values have a type (a kind) int ~ integers (whole numbers) Example: 25 float ~ floating-point numbers (decimal numbers) Example: 3.54969 strings ~ text Example: “hello!!!!!!!1” Another Example: “53153”

4 Variables A label that acts as a container to store a value Just like math! Variable Name Rules: 1. May contain letters, numbers, and underscore _ 2. Cannot start with a number 3. Must not have any special characters 4. Cannot be a special keyword (if, while, def)


Download ppt "Values, Types, and Variables. Values Data Information Numbers Text Pretty much anything."

Similar presentations


Ads by Google