Code in Python
Machine Learning and Deep Learning Blogs

Author: Akarsh Singh (page 2 of 2)

All you need to know about Functions in Python

You may be faintly familiar with functions by constantly using the built-in functions that Python provides. For example print(), input(), etc. are some of the built-in functions in Python. A function consists a block of code with which we want to perform some kind action. Now instead of writing that particular code repeatedly when a […]

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 […]

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 […]

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 (:) […]

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 […]

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. […]

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 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 […]

Top 20 Programming Terms that Everyone Should Know

Now in our earlier articles, we discussed the importance of programming and how to install python on your PC. Before starting with actual coding in Python, we should make ourselves familiar with certain programming terminologies that we will be using in our articles invariably. These are some of the most used words by any programmer […]

All you need to know about Programming

What is programming? Programming in layman terms is a process of writing computer programs to make your work easy or to be more specific automated. You can complete your repetitive tasks by programming it beforehand by using a computer program. So what is a computer program? A computer program is nothing but a collection of […]

Newer posts

© 2018 Code in Python