1469 Views
Random Data Distributions
In Machine Learning the data introduce with thousands-, or even millions, of values.
You might not have accurate data when you are testing an algorithm, you might have to use randomly created values.
As we learn in the previous article on Normal Data Distribution that ...
Anamika Gupta
Dec 13, 2021
2598 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
24742 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 06, 2019
6143 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
3477 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
2598 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
43859 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
2917 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