View on GitHub

python-for-kids

Learning and exercise content on Python for Kids

Day 3 - Few other Variables

Apart from string or text type of variable we have few other types of variable available. Some of the important ones are mentioned below.

Type Keyword
String str
Whole Number int
Number with decimal float
Boolean (True/False) bool

Watch the video

Video Link

Day 3 - Exercise

  1. Declare a variable of type str print the value and type.
  2. Declare a variable of type int print the value and type.
  3. Declare a variable of type float print the value and type.
  4. Declare a variable of type bool print the value and type.

Next: Day 4 - Number calculation

Back to Index