0% found this document useful (0 votes)
7 views5 pages

Write & Run Python Scripts on Windows

The document provides instructions for writing and running Python scripts on Windows using Notepad++, PyCharm IDE, and Python Shell. It includes step-by-step guidance for each method, highlighting their best use cases. Additionally, it features a brief author bio for Gowtham SB, a Data Engineering expert and educator.

Uploaded by

mathisaravanan23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Write & Run Python Scripts on Windows

The document provides instructions for writing and running Python scripts on Windows using Notepad++, PyCharm IDE, and Python Shell. It includes step-by-step guidance for each method, highlighting their best use cases. Additionally, it features a brief author bio for Gowtham SB, a Data Engineering expert and educator.

Uploaded by

mathisaravanan23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Gowtham SB

[Link]/in/sbgowtham/ Instagram - @dataengineeringtamil

Ways to Write & Run Python Scripts


(Windows)

1. Notepad++ + Command Line

✍️ Writing Python Code

1. Open Notepad++.

2. Write your Python code:

print("Hello from Notepad++!")

3. Save the file with .py extension, e.g., [Link].

Make sure the file is saved in a known location like C:\PythonScripts\[Link].

▶️ Running the Script

1. Open Command Prompt (Win + R → type cmd).

2. Navigate to the file location:

cd C:\PythonScripts

3. Run the script using:

python [Link]

Output:
Gowtham SB
[Link]/in/sbgowtham/ Instagram - @dataengineeringtamil
Hello from Notepad++!

2. PyCharm IDE

✍️ Writing Code in PyCharm

1. Open PyCharm → New Project

2. Inside the project, right-click on the folder → New → Python File → Name it hello

3. Write your code:

print("Hello from PyCharm!")

▶️ Running the Script

● Right-click on the file → Click "Run hello"

● Or click the green play icon on top-right.

Output appears in the Run Console at the bottom.

3. Python Shell (Interactive Mode)

▶️ Access Python Shell

1. Press Win + S, type python → Open the Python shell (interactive mode).

2. You’ll see:
Gowtham SB
[Link]/in/sbgowtham/ Instagram - @dataengineeringtamil
>>>

✍️ Writing Code

Type directly:

>>> print("Hello from Python Shell!")

Output:

Hello from Python Shell!

Good for quick testing, math, string operations, etc.

Bonus Tip:
To exit the Python Shell:

>>> exit()

or just press Ctrl + Z → Enter

Summary Table:
Tool How to Write How to Run Best For

Notepad++ Simple text editor python [Link] in Lightweight scripting


CMD

PyCharm Full-featured IDE Built-in run button Real projects,


debugging

Python Write inside Executes instantly Quick experiments,


Shell terminal testing
Gowtham SB
[Link]/in/sbgowtham/ Instagram - @dataengineeringtamil

About the Author

Gowtham SB is a Data Engineering expert, educator, and content creator with a


passion for big data technologies, as well as cloud and Gen AI . With years of
experience in the field, he has worked extensively with cloud platforms, distributed
systems, and data pipelines, helping professionals and aspiring engineers master the
art of data engineering.

Beyond his technical expertise, Gowtham is a renowned mentor and speaker, sharing
his insights through engaging content on YouTube and LinkedIn. He has built one of
the largest Tamil Data Engineering communities, guiding thousands of learners to
excel in their careers.

Through his deep industry knowledge and hands-on approach, Gowtham continues to
bridge the gap between learning and real-world implementation, empowering
individuals to build scalable, high-performance data solutions.

𝐒𝐨𝐜𝐢𝐚𝐥𝐬

🎥𝐘𝐨𝐮𝐓𝐮𝐛𝐞 - https: //[Link]/@dataengineeringvideos

📸𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - https: //[Link]/dataengineeringtamil

📸𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦 - https: //[Link]/[Link]

🤝𝐂𝐨𝐧𝐧𝐞𝐜𝐭 𝐟𝐨𝐫 𝟏: 𝟏 - https: //[Link]/dataengineering/

💼𝐋𝐢𝐧𝐤𝐞𝐝𝐈𝐧 - https: //[Link]/in/sbgowtham/

🌐𝐖𝐞𝐛𝐬𝐢𝐭𝐞 - https: //[Link]

💻𝐆𝐢𝐭𝐇𝐮𝐛 - http: //[Link]/Gowthamdataengineer

💬𝐖𝐡𝐚𝐭𝐬 𝐀𝐩𝐩 - https: //[Link]/g5JrHw8q

📧𝐄𝐦𝐚𝐢𝐥 - [Link]@[Link]
Gowtham SB
[Link]/in/sbgowtham/ Instagram - @dataengineeringtamil
📱𝐀𝐥𝐥 𝐌𝐲 𝐒𝐨𝐜𝐢𝐚𝐥𝐬 - https: //[Link]/gf8k3aCH

You might also like