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"))
Solve Problems by Coding Solutions - A Complete solution for python programming
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");
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");
Subscribe to:
Posts (Atom)