Stupid question: saving from notepad with extension not .txt

  • Thread starter Thread starter nrqed
  • Start date Start date
  • Tags Tags
    Extension Stupid
AI Thread Summary
To save a Python program in Notepad without the .txt extension, use the "Save As" dialog and select the "All Files" option from the dropdown menu. This allows you to specify the desired filename with the .py extension. Users have reported success with this method after initially encountering issues. It's important to ensure that the correct file type is selected during the saving process. This approach effectively resolves the problem of unwanted file extensions.
nrqed
Science Advisor
Messages
3,762
Reaction score
297
I think the heading pretty much says it all!
I want to write a python program and I am typing it in Notepad. when I save it, it adds .txt to my filename "myprogram.py".
How do I avoid that? (I know, it's a stupid question!)

Pat
 
Computer science news on Phys.org
The save dialog box should have a dropdown menu which allows you to save the file as .txt or * (all files). If you pick the * option then you can have it save as .py.

I'm not totally sure, but it is worth a try.
 
dduardo said:
The save dialog box should have a dropdown menu which allows you to save the file as .txt or * (all files). If you pick the * option then you can have it save as .py.

I'm not totally sure, but it is worth a try.

I could have sworn I *had* tried that and it did not work! But I tried it again (gicing a new filename) and it did work! Doh!

thanks! Your post at least prompted me to try again!

:-)


Pat
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top