1.Check python installed in pc by writing in cmd
C:\Users\ahmed>python --version

2.Writing and running python file

  • open txt file
  • write sample program example:- print("Hello, World!")
  • change the file name to helloworld.py
  • to run the file, type in cmd C:\Users\ahmed>python helloworld.py
  • dd
-----------------------------------------------------------