Skip to main content

Hello World: Create your First Python Program

 Creating First Program

Step 1) Open PyCharm Editor. You can see the introductory screen for PyCharm. To create a new project, click on “Create New Project”.

Creating Your First Python Program

Step 2) You will need to select a location.

  1. You can select the location where you want the project to be created. If you don’t want to change location then keep it as it is but at least change the name from “untitled” to something more meaningful, like “first project”.
  2. PyCharm should have found the Python interpreter you installed earlier.
  3. Next click the “Create” Button.

Creating Your First Python Program

Step 3) Now Go up to the “File” menu and select “New”. Next, select “Python File”.

Creating Your First Python Program


Step 4) A new pop up will appear. Now type the name of the file you want (Here we give “HelloWorld”) and hit “OK”.

Creating Your First Python Program

Step 5) Now type a simple program – print (‘Hello World!’).

Creating Your First Python Program

Step 6) Now Go up to the “Run” menu and select “Run” to run your program.

Creating Your First Python Program

Step 7) You can see the output of your program at the bottom of the screen.

Creating Your First Python Program

Step 8) Don’t worry if you don’t have Pycharm Editor installed, you can still run the code from the command prompt. Enter the correct path of a file in command prompt to run the program.

Creating Your First Python Program

The output of the code would be

Creating Your First Python Program

Step 9) If you are still not able to run the program, we have Python Editor for you.

Please run the given code at Python Online Editor

print("Hello World")                                                                                

Comments

Popular posts from this blog

What to expect from AI in 2023

  As a rather commercially successful author once wrote, “the night is dark and full of terrors, the day bright and beautiful and full of hope.” It’s fitting imagery for AI, which like all tech has its upsides and downsides. Art-generating models like  Stable Diffusion , for instance, have led to incredible outpourings of creativity, powering  apps , and even  entirely new business models . On the other hand, its open-source nature lets bad actors use it to create  deepfakes  at scale — all while  artists protest that it’s profiting off of their work . What’s on deck for AI in 2023? Will regulation rein in the worst of what AI brings, or are the floodgates open? Will powerful, transformative new forms of AI emerge, a la  ChatGPT , and disrupt industries once thought safe from automation? Expect more (problematic) art-generating AI apps With the success of  Lensa , the AI-powered selfie app from Prisma Labs that went viral, you can expect...

How To Install Python on Windows 11

  Python programming is very simple and easy but to run any Python program you must have Python installed on your machine correctly. So without wasting any time let’s learn how to install python on Windows 11 machine Step 1: Download the Latest Version Of Python for Windows 11   1) Firstly we have to download the latest python version available on the internet. Follow the below provided downloading link and you’ll be redirected to the official python downloads page. There click on the yellow download button and Python will start getting downloading. Download Python Here :    https://www.python.org/downloads.   2) Once your download gets finished open it up in the folder where it has been downloaded and simply double click on the downloaded “ .exe ” file. If a small pop-up appears, there click on “ yes ” and your python installation wizard will start. Step 2: Install Python in Windows 11 1) Next, in the python installation wizard click on the “ Customize Installa...

Tether (cryptocurrency)

The most liquid, stable , and trusted stable coin . Launched in 2014 by a group of Bitcoin enthusiasts and early adopters, Tether is a blockchain -enabled platform designed to facilitate the use of fiat currencies digitally. Tether is a token backed by actual assets, including USD and Euros. One Tether equals one underlying unit of the currency backing it, e.g., the U.S. Dollar, and is backed 100% by actual assets in the Tether platform’s reserve account. Being anchored or “tethered” to real-world currency, Tether provides protection from the volatility of cryptocurrencies . Tether enables businesses — including exchanges, wallets, payment processors, financial services, and ATMs — to easily use fiat-backed tokens on blockchains . By leveraging Blockchain technology, Tether allows you to store, send and receive digital tokens person-to-person, globally, instantly, and securely for a fraction of the cost of alternatives. Tether’s platform is built to be fully transparent at all times....