Python program to find day of birth

import datetime
y = input("Enter year of Birth: ");
m = input("Enter month of Birth: ");
d = input("Enter date of Birth: ");
mydate = datetime.date(int(y),int(m),int(d))
print(mydate.strftime("%A"))

Python program to shutdown and restart computer

import os;
check = input("Want to shutdown your computer ? (y/n): ");
if check == 'n':
    check = input("Want to restart your computer ? (y/n): ");
    if check == 'y':
        os.system("shutdown /r /t 1");
    else:
        exit();
else:
    os.system("shutdown /s /t 1");