Exercise 1: Variables

Let's try practicing the concepts and syntax we have learned so far.

Problem Statement

  • Print the high-level data type of the given variable.
  • Print the low-level data type of the given variable.

Use a cat() statement to display text on the screen, showing the high-level and low-level data types.

Input

A testVariable containing the variable being tested.

Output

The high-level and low-level data types of that variable.

Sample Input

1.9

Sample Output

numeric double

Test Yourself

Write your code in the given area. If you get stuck, you can look at the solution.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy