Python Online Compiler
Example: Python program to take inputs from the user
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program to take inputs from the user print("Enter the integer value::") p = int(input()) print("Enter the float value::") q = float(input()) print("Enter the string value::") r = str(input()) print("\nThe integer input is:\n", p, "\n") print("The float input is:\n", q, "\n") print("The string input is:\n", r, "\n")
5 7.5 hello
Output
Clear
ADVERTISEMENTS