How To Restore Default Extension (.py) For Python Program

Published July 20, 2022

Restore Default Extension

In this tutorial, we will learn “How To Restore Default Extension (.py) For Python Program” Python is an interpreted high-level general-purpose programming language. Its design philosophy emphasizes code readability with its use of significant indentation. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small- and large-scale projects. There are many ways available to fix this issue, let’s fix this issue.

 

How To Restore Default Extension (.py) For Python Program

  1. First Open Registry Editor.
  2. Go to the Search Bar and type Regedit.
  3. Now press Enter, it will open Registry Editor Console.
  4. Now Go to :HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
  5. Find the .py extension among the list
  6. Delete the UserChoice key (folder)
  7. Now navigate to: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python XX and choose IDLE…
  8. That’s it.
  9. If it’s not working then we need to uninstall python completely from the windows operating system.
  10. First Install any uninstaller from the web, there are many uninstallers available like Revo uninstaller, Iobit uninstaller.
  11. Now uninstall it completely from your windows and remove its registry also.
  12. Now reboot your pc once.
  13. after restarting download the latest python from its official website.
  14. now run it as administrators, and install.
  15. That’s it, it will Restore Default Extension (.py) For Python Program