repl.it
@Juice99/

Function testing

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
def add(x, y):
  x = int(x);y = int(y)
  return x + y

w = input("Give a number: ")
z = input("Give another number: ")
print(add(w, z))

more = str(input("Give 2 numbers separated by a comma: "))
GG = more.split(",")
u = GG[0]; v = GG[1]
u = int(u);v = int(v)
print(add(u, v))
?