I’m pursuing a python course and trying to run a Python script in PowerShell.
Why are you doing this? Python is Python, PowerShell is PowerShell run python scripts in python and PowerShell scripts in powershell
from datetime import datetime
now = datetime.now() # current date and time
strdate = now.strftime(“%dd/%mm/%Y”)
print(“date and time:”,strdate)