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 IS ETHEREUM?

  Ethereum is open access to digital money and data-friendly services for everyone — no matter your background or location. It’s a community-built technology behind the   cryptocurrency   ether (ETH) and thousands of applications you can use today. Banking for everyone : Not everyone has access to financial services. But all you need to access Ethereum and its lending, borrowing, and savings products is an internet connection. A more private internet:  You don’t need to provide all your personal details to use an Ethereum app. Ethereum is building an economy based on value, not surveillance. A peer-t o -peer network:  Ethereum allows you to move money, or make agreements, directly with someone else. You don’t need to go through intermediary companies. Censorship-resistant:  No government or company has control over Ethereum. This decentralization makes it nearly impossible for anyone to stop you from receiving payments or using services on Ethereum. Commerc...

What Makes a Blockchain Suitable for Business?

  Instead of having a   blockchain   that relies on the exchange of   cryptocurrencies   with anonymous users on a public network (as is the case with   bitcoin ), a   blockchain   for business is a private, permissioned network with known identities and without the need for   cryptocurrencies . To further understand how a  blockchain  for business works, and to appreciate its potential for revolutionizing business networks, you need to understand the four key concepts of  blockchain  for business These four concepts are explained in this section. Shared ledger they’ve been used i n  double-entry bookkeeping since the 13th century. What is new is the concept of a shared, distributed ledger — an immutable record of all transactions on the network, a record that all network participants can access. With a shared ledger, transactions are recorded only once, eliminating the duplication of effort that’s typical of traditio...

Newcastle United F.C. Leicester City F.C. Premier League • EFL

  Newcastle United F.C. is a professional football club based in Newcastle upon Tyne, England. The club currently competes in the Premier League, the top division of English football. Newcastle United has a long and successful history, having won four top-flight English league titles and six FA Cups. Leicester City F.C. is a professional football club based in Leicester, England. The club currently competes in the Premier League and has a strong history of success, having won the top-flight English league title in the 2015-2016 season and the EFL Cup in the 1997-1998 season. The Premier League is the top division of English football and is widely regarded as one of the best football leagues in the world. It is made up of 20 clubs and is contested annually, with the winner being crowned the champion. The EFL (English Football League) is the governing body for professional football in England. It is made up of 72 clubs, which are divided into three divisions: the Championship, League...