Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

A program checks to see if the input is valid using
numbers
operators
logic
output​


Sagot :

Use the knowledge in computational language in python program checks to see if the input is output​.

How to define input in Python?

In Python, we do this using the input() function, which is literally 'input' in English. The input() function receives as a parameter a string that will be shown as an aid to the user, usually informing him what kind of data the program is expecting to receive.

So in an easier way we have that the code is:

def isNumber(x):

   if type(x) == int:

        return True

   else:

        return False

input1 = 122

input2 = '122'

if isNumber(input1):

   print("Integer")

else:

   print("String")

if isNumber(input2):

   print("Integer")

else:

   print("String")

See more about python at brainly.com/question/18502436

View image lhmarianateixeira