print("Enter '0' for exit."); valint = int(input("Enter the number: ")); valfloat = float(input("Enter the float number: ")); valstring = input("Enter string: "); valexit=input("You want to exit press 'y' or 'n' :"); if valexit == 'y': exit(); else: print("You have just entered:",valint,valfloat,valstring);
Python Program to get int,float,string from user and print it.
Reviewed by
on
December 26, 2019
Rating:

No comments: