Dictionaries Again

We saw in the previous posts how to retrieve items from Dictionaries. Now, let’s learn other operations associated with Dictionaries in Python. Length of Dictionaries We have created a dictionary called as personDict. We can find the length of Dictionaries as shown below. Example: Output: This will display the number of items in a dictionary.Continue reading “Dictionaries Again”

Strings Formatting

Strings in Python is very much similar like the usage in other languages. I am going to point out the most important ways of strings formatting which is little different in Python. Assume that there is a scenario, where you are getting a value from a method and the value that is returned from theContinue reading “Strings Formatting”

Data Types

Datatypes are common concepts across every language. The data that is stored in a variable determines the data types. For Example: a variable that stores a text has string as a data type, similarly, variable storing number has int, float or complex as data type depending on the complexity of the number. Let’s understand fewContinue reading “Data Types”

Comments in Python

Comments are statements that is written inside a code which is used mostly for adding the note about the code. Comments doesn’t gets executed. It is basically ignored by the compiler. Comments are added to increase the code readability and maintainability. There are specific syntax that needs to be followed to write comments. Single lineContinue reading “Comments in Python”

Variables in Python

Variable creation in Python is very much similar to the other programming languages. However, there are few notable differences. Variables are created only when it is assigned with a value. There is no concept of declaration. Variables type are determined only when it is assigned with a value. Type is optional while creating variables.  TypesContinue reading “Variables in Python”

Indentation in Python

Indentation plays a major role in Python. Let’s see with example. Here is a sample code of if block without space: This says to print “Hello from Python” whenever it executes and both the code statements are aligned to each other. The Python interpreter will not know that the print statement should be executed wheneverContinue reading “Indentation in Python”

Hello World from Python

Create Project via PyCharm Open PyCharm and click on “Click New Project“ Specify the location of the project. Click on “Project Interpreter” settings, it will automatically populate the values of the interpreter and then click “Create“. The project will be created as shown. Once the project is created, right click on the project name, selectContinue reading “Hello World from Python”

Python via Visual Studio Code

Visual studio code is free and available for all type of Operating System. First step would be to install visual studio code. Download visual studio code from the link below and click on the corresponding button based on your Operating System. https://code.visualstudio.com/download I am downloading the windows installer. An .exe file like shown below willContinue reading “Python via Visual Studio Code”

Install Pycharm

Pycharm can be downloaded from here. https://www.jetbrains.com/pycharm/download/#section=windows We have two variations of “Pycharm” available for download. Professional version – Which supports web development with HTML , JS and SQL support, which is available as free trial and have to upgrade after the free trial period expires. Community version – Which supports only pure python developmentContinue reading “Install Pycharm”

Design a site like this with WordPress.com
Get started