How to get input from user in python

To get input from user in python we have input build in function

x= input(“Enter a number : “)

x= input(“Enter your name : “)

To get number value from input python

x= int(input(“Enter a number : “))

Leave a Reply

Your email address will not be published. Required fields are marked *