Last Updated : 13 Mar, 2024
Summarize
Comments
Due to its simplicity, versatility, and readability, Python has become phenomenally popular as a computer language that is highly leveled and dynamically typed. These are some of the IDEs for Python development that have many tools; however, if you are just starting or want it lighter, then Windows’ simple text editor – Notepad can be an option to start with. This article immerses in Python usage via Notepad—highlighting steps involved, breaking down underlying concepts, and eventually weighing up the pros versus cons of this approach.
Installation:
- Get the newest version of Python from its official website: (www.python.org/downloads)
- Python Installation Process
Note: While doing the installation process select “Add Python to PATH”. It will allow using Python from any command prompt easily.
Steps to Use Notepad to Run Python Program
Perform the following steps to write and execute a Python script on Notepad:
- Click on the notepad icon on your PC and start typing the Python code you want to write. Then save it with a .py extension.
- Save your Python script. Ensure you select “All Files” for the file type when saving and give it a .py extension.
- Open Command Prompt (CMD).
- Navigate to the Script's Directory:
- Use the cd command to navigate to where you have stored your Python script by changing the directory.
- Now run your Python script by entering this command:
python script_name.py
Implementation
For this illustration, take a simple Python script as pythonfile.py, save it, and then open the command prompt to the folder in which you saved it. Here there is a Python script with the code shown below:
To change your directory type this command into the following:
cd path\to\your\script\directory
And you can run your file from window console by typing:
python script_name.py

Conclusion:
Nevertheless; while this program is suitable for small Python scripting tasks, it’s limited when handling complex ones. Better yet opt for dedicated Python IDE (Integrated Development Environment) or Code Editor to have better code control ,debugging operations and functionality. The popular examples include Pyacharm, Spyder, VSCode editor etc.
Related Article: Python Tutorial
Next Article
Format a Number Width in Python
Similar Reads
- How to Install Python-PyMedia on Linux? Are you having doubts about Installing Python-PyMedia on your Linux System? If so, your search for the best installation guide ends here. This article covers all the insights about Python-PyMedia, its features, and installation. As you finish this article, you will have all the information required 6 min read
- How to get/change the HTML with DOM element in JavaScript ? In order to get/access the HTML for a DOM element in JavaScript, the first step is to identify the element base on its id, name, or its tag name. Then, we can use inner.HTML or outer.HTML to get the HTML. Using the getElementById() method: This method gets/identifies the DOM elements using its ID an 3 min read
- Python MongoDB - Sort MongoDB is a cross-platform document-oriented database program and the most popular NoSQL database program. The term NoSQL means non-relational. MongoDB stores the data in the form of key-value pairs. It is an Open Source, Document Database which provides high performance and scalability along with 2 min read
- How to Use Routing with React Navigation in React Native ? Almost every mobile application requires navigating between different screens. React Native provides an elegant and easy-to-use library to add navigation to native applications: react-navigation. It is one of the most popular libraries used for routing and navigating in a React Native application. T 4 min read
- How to Return JSON using Node.js ? Node.js is a powerful platform for building server-side applications and returning JSON data is a common task in web development, especially when building APIs. JSON stands for JavaScript Object Notation. It is one of the most widely used formats for exchanging information across applications. Node. 4 min read
- What is a tooltip and how to create it in Bootstrap ? A Tooltip is like a balloon or also a small screen tip that displays text description to any object. A tooltip is displayed when the user hovers over an object using the cursor. It is a very useful part of a website and now can be found in almost all websites including some web applications like Ado 3 min read
- How to Browse in Microsoft Edge Browser Microsoft Edge (or simply known as Edge) is a cross-platform internet browser developed by Microsoft. It was first released in 2015 alongside Windows 10. Edge was developed as a successor to Internet Explorer. Edge contains many user-friendly features such as Favorites, a reading list, browsing hist 6 min read
- Structure of HTTP request in Postman Postman is a powerful tool that simplifies the process of making HTTP requests for testing APIs. Understanding the structure of a typical HTTP request in Postman is fundamental for everyone who want to test endpoints. In this article, we'll break down the key components of an HTTP request in Postman 3 min read
- How to loop through input elements in jQuery ? In this article, we will learn how to loop through input elements and display their current values in jQuery. This can be done using two approaches: Approach 1: In this approach, we will iterate over every input type which is of text type by using input[type=text] as the selector. Next, we will use 2 min read
- List of Top 10 Largest Tea Exporting Countries The top 10 largest tea exporting countries are China, Kenya, Sri Lanka, India, Poland, Germany, Japan, UAE, UK, and Vietnam. These countries export a wide variety of teas, including black tea, green tea, oolong tea, and white tea. Some of the most famous teas in the world come from these countries, 10 min read
- How to get current timestamp in Scala as a string without spaces? In this article, we will learn to get the current timestamp in Scala as a string without spaces. Getting the current timestamp involves retrieving the current date and time information and formatting it into a string representation without any spaces, typically using classes like java.time.LocalDate 3 min read
- Python: Iterating With Python Lambda In Python, the lambda function is an anonymous function. This one expression is evaluated and returned. Thus, We can use lambda functions as a function object. In this article, we will learn how to iterate with lambda in python. Syntax: lambda variable : expression Where, variable is used in the exp 2 min read
- How To Share a Private YouTube Video with Specific Users How To Share a Private YouTube Video with Specific UsersSharing video content on YouTube is creative and interesting work creators and influencers love. But with all these, sometimes some situations limit us from publicly sharing our videos. Be it some privacy concerns or hiding videos from others, 6 min read
- How to Calculate Skewness and Kurtosis in Python? Skewness is a statistical term and it is a way to estimate or measure the shape of a distribution. It is an important statistical methodology that is used to estimate the asymmetrical behavior rather than computing frequency distribution. Skewness can be two types: Symmetrical: A distribution can be 3 min read
- 7 ChatGPT Prompts to Boost Your Personal Development Journey Effective personal development strategies and tools are vital in promoting growth and self-improvement. One such tool that has gained immense popularity in recent years is ChatGPT, an AI-based language model created by OpenAI. Using ChatGPT can provide valuable insights to help individuals guide the 7 min read
- Python VLC MediaPlayer – Setting Track In this article we will see how we can set track of the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediPlyer object is the basic object in vlc modu 2 min read
- How to configure network interfaces in CentOS? A network interface is a link between a computer and another network(Private or Public). The network interface is basically a card which is known as NIC or Network Interface Card, this does not necessarily have to be in a physical form instead, it can be inbuilt into the software. If we take the exa 5 min read
- Combobox Widget in tkinter | Python Python provides a variety of GUI (Graphic User Interface) types such as PyQT, Tkinter, Kivy, WxPython, and PySide. Among them, tkinter is the most commonly used GUI module in Python since it is simple and easy to understand. The word Tkinter comes from the Tk interface. The tkinter module is availab 3 min read