A simple Python program that detects the type of data entered by the user.
The user enters a value, and the program checks whether it is:
- Integer
- Float
- Boolean (
TrueorFalse) - String
The user can continue testing multiple values.
- Functions
- User Input
- Loops (
while) - Exception Handling (
tryandexcept) - Conditional Statements (
ifandelse)
Input: 123
Output: Detected type : Integer
Made by Naitik while learning Python.