variables and data types

by jack rich

what are the three data types?

the three data types are

  • string strings are words in quotation marks "hello"
  • integer intergers are hole numbers 9,456
  • float floats have decimals 1.23

variables

what is a variable ?

variables are like boxes, you can put anything into them. for eg 1 username = "jack rich"

2 print username. so it will print jack rich because we put that into the variable username