Code in Python
Machine Learning and Deep Learning Blogs
search

Category: Python Basics (page 1 of 2)

Install Python on Mac in 6 Easy Steps

Here we will provide step by step guide on how to install Python on your PC. Here we will show you how to install Python 3.5.2 for Mac operating system. Follow the guide below. There is a difference between Python2 and Python3. We prefer and also recommend users to get familiar with Python3. Since there […]

Install Python on Windows in 6 Easy Steps

Here we will provide step by step guide on how to install Python on your PC. Here we will show you how to install Python 3.5.2 for windows operating system. Follow the guide below. There is a difference between Python2 and Python3. We prefer and also recommend users to get familiar with Python3. Since there […]

Step by Step Install JetBrains PyCharm

JetBrains PyCharm is an Integrated Development Environment (IDE) used specifically for writing python programs. It provides code analysis, a graphical debugger, an integrated unit tester and supports web development with Django. To install PyCharm, keep in mind that first, you have to install the python interpreter. To install python interpreter, refer our previous articles Install […]

All you need to know about Variables in Python

The concept of variables is same in any programming language. A variable is nothing but a memory location that is capable of storing some data or a specified value. Whenever you create a variable you reserve some space in memory to store the desired information. You can consider a variable as a box with some […]

Data types and Numbers in Python

Data types as defined in our Top 20 Programming Terms that Everyone Should Know article are the means to identify the types of data used in a programming language. With the help of data types, we can identify the type of data and then perform associated operations for handling that type of data. Python has […]

All you need to know about Strings in Python

Strings are the most important data types in Python. The string is defined as a combination of more than one character placed contiguously within quotation marks. In other programming languages a string is enclosed only in double quotes but in python, we have the freedom to put our string in either double or single quotes. […]

Learn about Python List and its Built-in Functions

A Python list is a sequence data type similar to array. It contains characters(numbers, letters, words) separated by commas and enclosed in square brackets ([]). A list can consist of all elements as numbers, characters or a combination of both. The arrangement of the elements in a list is not specified (it can be sorted […]

Learn about Dictionary in Python 3

We have stored values in variables and lists. In lists, the values were accessed using indices. Dictionary stores values using keys. Keys in dictionaries map directly to the values. It is like a hash table. It is enclosed in curly braces ({}) and every key and its value are separated by commas. A colon (:) […]

How to work with Tuples in Python

A tuple is a sequence data type that is similar to list. Tuples are immutable lists. It contains a set of numbers or characters or a combination of both separated by commas and enclosed within parenthesis (()). Lists are enclosed in square brackets ([]) whereas tuple is within parenthesis (()). The one thing that separates […]

Conditional Statements ( if, elif and else ) in Python.

Ever thought how would I implement a certain block of code if it satisfies certain condition? If, else and elif are conditional statements in Python. The if statement gives a specific condition to the code. If the program satisfies that condition, then the program get executed otherwise it will jump to else statement. The syntax […]

Older posts

© 2018 Code in Python