Input getting
Input getting used to get the data from user in runtime.
Example-1
s = input()
Example-2
s = input("Enter the String:")
Another data type
Data type | Format |
---|---|
int | int(input()) |
float | float(input()) |
String | input() |
list | list(input().split()) |
tuple | tuple(input().split()) |
set | set(input().split()) |
Dictionary | dict(input().split()) |