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 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 in 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 traditional business networks Permissions Blockchains can be permissioned or permissionles...

What is Boxing Day

  Boxing Day is a holiday that is celebrated on December 26th in several countries, including Canada, the United Kingdom, Australia, and New Zealand. It is a public holiday that traditionally follows Christmas Day and is often a day off work for many people. The origins of the holiday are not definitively known, but it may have originated as a day for servants and tradespeople to receive gifts from their employers or as a way for the wealthy to give back to the less fortunate. In modern times, Boxing Day is often celebrated with activities such as shopping, sports events, and visiting with friends and family.

25 reasons why Python may be a good choice for your project

Python is a high-level, general-purpose programming language, which means it can be used to build almost any type of software, from desktop applications to web apps to scientific applications and more. Python is easy to learn and use, with a simple syntax and a large standard library that supports many common programming tasks. Python is a dynamically-typed language, which means you don't need to specify the type of a variable when you declare it. This makes it easy to get started with Python and can save time when writing code. Python has a large and active community of users and developers, which means there is a wealth of documentation, libraries, and tools available to help you get started with your project. Python has a large number of third-party libraries and frameworks available, which can make it easier to develop complex applications quickly. Python has a number of built-in data types, such as lists, dictionaries, and tuples, which can be used to store and manipulate data...