From 744aa6c8b4b78f2a3804ccda0ab9d9929dbab66c Mon Sep 17 00:00:00 2001 From: Nikita6599 <43905004+Nikita6599@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:45:22 +0530 Subject: [PATCH] Checking the type of variables --- src/variables.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/variables.py b/src/variables.py index 759b7bd..e318312 100644 --- a/src/variables.py +++ b/src/variables.py @@ -5,4 +5,10 @@ negFloat = -1 initial = 3 initial = 4 +num = 5.6 print(initial) + +#check type of variables +print(type(boolean)) ## returns bool +print(type(posInt)) ## returns int +print(type(num)) ## returns float