Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (2.2k points)

Could someone tell me what does the Python input() function does?

1 Answer

0 votes
by (3.9k points)

In Python, the input() function returns a string irrespective of the type of data you have entered. Since whatever the input we will feed as input, it will be from a keyboard and hence it will be a string as the input from a keyboard will be a sequence of characters.

Wish to learn Python? If so, check out the Python course from Intellipaat, as it provides one of the best industry-grade courses along with projects that will help you in enhancing your practical skills. If you prefer Hindi, as the medium of instruction to take baby-steps into the world of Python, then watch the following video on Python Tutorial in Hindi.

Related questions

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...