Just declare a variable like k
or m
or any other you want, now just add this piece of code at the end of your program
k=input("press close to exit")
Here I just assumed k
as variable to pause the program, you can use any variable you like.