+ 1
Help with python
how yo use the inputs?
2 Answers
+ 5
Assuming you require help with the input() function...
Here's a sample:
def add(x, y):
return x + y
first = int(input("Enter first number: ")) #Gets input from user and converts to integer, under the prompt of 'Enter first number'.
second = int(input("Enter second number: ")) #Same thing
print(add(first, second)) #Outputs the sum of the two variables specified by the user.
Hope this helped! đ
+ 1
thank you very much that was the same thing I wanted to know