Types

1 / 5

Different Types

In Python, every variable is of a certain type. The type is not always directly visible, but Python deduces them automatically. The four most common types are:

  • string variables (as in a string of characters) store raw text like "John Doe";
  • int (integer) variables store whole numbers like 16 or -2;
  • float (floating point) variables store decimal numbers like 3.14; and
  • bool (Boolean) variables store either True or False.

Objective

Input the name and age of a person and print the information. For example, if the first input is John and the second input is 16 then the output should be John is 16 years old.

Congratulations!

You passed the !

Welcome!

Would you like a guided tour on how to use Vibewise?