The very first program which any person would attempt when learning a programming language is to print “Hello World!”, today in this article you would learn how to print “Hello World!” in a simple Python Program.
1 2 |
# Writing the first program in Python print "Hello World!"; |
Create a file and save above content with a file name “HelloWorld.py” and execute it by following the steps to run “.py” files as described below to see the output.
Steps to Run “.py” files.
- Make sure Python is installed in your Machine, In case Python is not yet installed, follow the simple steps to Download and Install Python in Windows machine / laptop.
- Open Command Prompt / PowerShell in Windows
- Use Commands to navigate to folder where the “HelloWorld.py” is stored.
- Type command “Python HelloWorld.py” without double quotes and press Enter key, you would see the output of the program
Output: on the console / command prompt
Hello World!
Hope this had given you a head start as how to work with Python Files.
Founder of TestingTools.co, constantly shares knowledge on different test automation tools. Has experience in building proof of concepts, solutions, frameworks, platforms & implementation of test automation projects.
In pursuit of building a platform with inbuilt framework and reusable components for Oracle Cloud applications ( Oracle HCM, CX, SCM, Financials clouds, Salesforce and other cloud applications )
Major accomplishments in his career:
- Product architect and development manager for test automation platforms
- Oracle Flow Builder @ Oracle
- CloudTestr @ Suneratech
- 2 times to oracle open world
- More than 20 successful POCs ( Proof of concepts )
- 100 demos
- Designed pricing models.
- Trained more than 50 members.
- Built more than 100 re-usable functions.
Worked with tools: