- ipc1.py
def server(a, b): a, b = b, a print("The value of a is " + str(a) + " and b is " + str(b))
2. ipc2.py
import ipc1 if __name__ == "__main__": a, b = map(int, input().split(" ")) ipc1.server(a, b)
Output :
2 4
The value of a is 4 and b is 2
def server(a, b): a, b = b, a print("The value of a is " + str(a) + " and b is " + str(b))
2. ipc2.py
import ipc1 if __name__ == "__main__": a, b = map(int, input().split(" ")) ipc1.server(a, b)
Output :
2 4
The value of a is 4 and b is 2