➽ Program:-
#For String Input
str = input("Enter any String:
")
print("Result:",str)
#For Integer Input
num = int(input("Enter an Integer:
"))
print("Result:",num)
#For Float Input
num = float(input("Enter a Float
Value: "))
print("Result:",num)
➽ Output:-
Enter any String: Coding Plaza
Result: Coding Plaza
Enter an Integer: 50
Result: 50
Enter a Float Value: 3.6
Result: 3.6
0 Comments
Please do not enter any spam link in the comment section.