How to input data using python

 # for string input

name=input("enter your name")

print(name);

#  for integer input

number=int(input("enter a number"))

print(number)

# for float input

number=float(input("enter a decimal number"))

print(number)


Comments

Popular posts from this blog