288 Views
To check Key exist or not in Python, you can use in operator. user = { 'name':'Sheetal', 'company': 'Impulsive Web', 'role':'Tech Lead' } if 'role' in user: print('Exist') else: print('Not Exist') Output: Exist   You ...
Sheetal Kumar
Apr 24, 2019
309 Views
To calculate the length of any string or get the elements count of an Array or List, You can use len() function in Python. 1. Length of String name = "Sheetal Kumar" size = len(name) print(size) Output: 13   2. Length of List: items = ["A","B","C","D"] size = len(items) print(size) Output: 4   ...
Sheetal Kumar
Apr 24, 2019
300 Views
In Python we use List in place of Array. The name is different but the functionality of List is like an Array in any other language. To merge two arrays in python, you can use Concatenate Operator directly. finalList = listA + listB Full Example: listA = ["A", "B", "C"] listB = ["D", ...
Sheetal Kumar
Apr 23, 2019
1234 Views
After creating a Python App on your local machine you need to deploy your app on the server so that app can be accessed from anywhere. On your local environment, you run your app by using python or a python3 prompt like below. python myapp.py The app will stop after you close the terminal. ...
Sheetal Kumar
Mar 05, 2019
2068 Views
Flask is a microframework written in Python. It helps to create a small app to large scale web application. Advantages of using flask framework are as follows: Easy installation Small size Large community support Fast in execution   In this article, ...
Sheetal Kumar
Feb 01, 2019
1825 Views
To represent data in JSON format  name=John age=20 gender=male address=Sector 12 Greater Kailash, New Delhi Jobs=Noida,Developer | Gurugram,Tester |Faridabad,Designer info.json  In json we repesent a data in key and value format and it is very easy.  { "Key":"Value", ...
Anamika Gupta
Jul 01, 2018
500 Views
The best way to learn any program is to practice the program. You can practice these small program using notepad or some some editor like pycharm. To run the python program you need to python installed on your system. If you have already installed python on your system then the best way to run the ...
Anamika Gupta
Jun 13, 2018
321 Views
Function is an arrangement of a statement that execute like a data processing or computing.  Whenever you define a function you define the name of the function. You can call a function by its name, it is called a  function call. Syntax def functionname( parameters ): "function_docstring" ...
Anamika Gupta
Jun 06, 2018
999 Views
The list of keyword in Python and their uses are as follows:-   False assert del for in or while None break elif from is pass with True class else global lambda raise yield and  continue except if nonlocal return   as def finally import not try     Some ...
Anamika Gupta
May 31, 2018
11913 Views
Implode and explode is the basic operation in any programming language. Here i will show you how to join and array or List items in single string or split sting into multiple variables or array in python. Sometimes you may need to break a large string down into smaller parts or strings.  ...
Sheetal Kumar
Feb 08, 2018
524 Views
The list is the most useful data collection in python. It acts like an Array and has associated functions to perform multiple operations in the List in Python. Here we will elaborate the functionality and uses of List. Let's start with an empty list creation and add String and Dictionary ...
Sheetal Kumar
Feb 04, 2018
Page 1 of 1 Pages       Total Records 11
  • First
  • Prev
  • 1
  • Next
  • Last