Python Program To Read Data from Keyboard

Python Program To Read Data from Keyboard

Write Python code to read data from the keyboard

# WAP to Read Data from Keyboard

# read from keyboard
a = input("Enter the Decimal Number :--> ")
b = input("Enter the Floating Point Number :--> ")
c = input("Enter the Character :--> ")

# Display values stored in the variable
print("\nThe Decimal Number is : ", a)
print("The Floating Point Number is : ", b)
print("The Character is : ", c)

Output:

Enter the Decimal Number :--> 89
Enter the Floating Point Number :--> 65.69
Enter the Character :--> r

The Decimal Number is :  89
The Floating Point Number is :  65.69
The Character is :  r