DEV Community

Cover image for How To Learn Python
meghanagandasiri
meghanagandasiri

Posted on

How To Learn Python

what is python?

Python is a popular programming language for beginners because it's easy to read and write, and has a simple syntax.
_python is high level interpreted language
It is used to develop software web applications
(https://www.w3schools.com/) it is the good platform for beginners to learn python easily and write code easily

Object-oriented programming

_Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code: data in the form of fields, and code in the form of procedures. In OOP, computer programs are designed by making them out of objects that interact with one another.

what is Data Types

A data type is an attribute associated with a piece of data that tells a computer system how to interpret its value.

How do you write the First Code in Python?

_If you are new to the programming arena, you might not be sure about how

and where to write python code. Follow the below steps to write your first code in python:

  1. Open up your Pycharm editor or whichever editor you are using and create a new project.
  2. Select the location of the file where you plan to save.

  3. Click on the โ€˜newโ€™ option and select the option for a Python file.

  4. Enter the file name you want to keep.

  5. Now type a single program and click on Run. You will be able to see the output.

_

>>> a="Hello World"
>>> print(a)
Hello World
Enter fullscreen mode Exit fullscreen mode

Top comments (0)