User Input in Python

Rumman Ansari   Software Engineer   2022-08-12   633 Share
☰ Table of Contents

Table of Content:


  • What you will learn in this section:
    1. What is input() function??
    2. How to take input from user.
    3. How to add two number.
    4. How to take name from user and print it in console.

    Input() function:

    input is a common input instruction, which allows users to input data from "standard input device" (usually refers to keyboard) and transfer the numerical value, character or string entered by users to the specified variable. When the input function is called it stops the program and waits for the user’s input. When the user presses enter, the program resumes and returns what the user typed.