Getting input from the user.

Here, we will use an input method to get value from the user after executing the program(at runtime).

# storing the value from user into my_input
my_input = input('Enter any words, string, number, decimal\n')
print(f'value of input: {my_input}')
print('type:',type(my_input))
# so the by default type is str: string
# use type casting after getting the input value
int_input = int(input('Enter any integer Data\n'))
print(f'value of input: {int_input}')
print('type:',type(int_input))
# do the same thing but with the decimal - float data 
deci_input = float(input('Enter any Decimal Data\n'))
print(f'value of input: {deci_input}')
print('type:',type(deci_input))