x = 10 # int
name = "Shaivi" # str
int, float, str, bool, list, tuple, dict, set
Use type(variable)
to check.
x = input("Enter value: ") # Always returns str
y = int(x) # Convert to int if needed
str(10) → '10'
int('20') → 20
float('3.14') → 3.14
Use f-strings for clean output:
print(f"The value is {{x}}")