Ok so I want to make a very very very very very simple coin flipping program and I want to make it so the player can choose if to close after the coin flipped or if to flip again. This is the code I used, the person can type either 1 or 2, and choose if to flip again or if to close the program, I tried using open("Coinflip.py) but it didn't do anything. What should I do?
import random 
import time  
flip = random.randint(1, 2)  
if flip == 1:     
    print("The coin landed heads")  
if flip == 2:     
    print("The coin landed tails")   
print('') 
print("")  
time.sleep(1)  
choice = int(input("Type 1 to exit or 2 to flip again and press enter "))  
if choice == 1:     
    exit()  
elif choice == 2:     
    open("Coinflip.py") 
input()
 
     
    