Sunday, March 3, 2019

Covert String into float & int - Python3

x = input("Enter the Number: ")
a = float(x)
b = int (x)
print (a)
print (b)

ScreenShot:




No comments:

Post a Comment