Example & Tutorial understanding programming in easy ways.

What is the default data type return by the input() function ?

input() function take user input value, which is always a string type.


Example:

n=input()

print(type(n))


Output:

class 'str'

Read More →