questions/python
Sorted Containers is an Apache2 licensed sorted ...READ MORE
Hey @Alia, you can use a python ...READ MORE
You can use random.sample() function in the ...READ MORE
Each choice is random, so it can ...READ MORE
You can also use secrets.choice() import secrets list = ...READ MORE
I have the following python code: playerlocation =(input("Player ...READ MORE
You could use random.shuffle from random import shuffle players ...READ MORE
You can use sleep() method to sleep ...READ MORE
You can try this @Mahesh: lst = [ ...READ MORE
%s and %d are used for string ...READ MORE
Python 3 offers rich functionality making it ...READ MORE
It really depends on what you want ...READ MORE
Check that your setup.py file should contain: setup(service=["we ...READ MORE
Try virtualenv : http://pypi.python.org/pypi/virtualenv This helps you create isolated ...READ MORE
You can use the following code block: x=range(1,100) len(x) Output: ...READ MORE
You need to set up the path ...READ MORE
Hey @Vedant, that's pretty simple and straightforward: if ...READ MORE
Hi Sarada, I understand you are having problems with ...READ MORE
You can use the linespace function. It ...READ MORE
Try this: [x * 0.01 for x in ...READ MORE
It returns a random floating point number ...READ MORE
Use random.uniform(a, b): Returns a random floating point ...READ MORE
Hey @Akash, if your just looking for ...READ MORE
This should work well: import numpy as np import ...READ MORE
Many times you want to create a ...READ MORE
Try this, it should work well. import matplotlib.pyplot ...READ MORE
Try this: import matplotlib.pyplot as plt import numpy as ...READ MORE
Have a look at this: import matplotlib import matplotlib.pyplot ...READ MORE
Have a look at this: import numpy as ...READ MORE
Hi @Kashish, try something like this: for i ...READ MORE
To count the number of elements of ...READ MORE
To check if a list is empty ...READ MORE
Python provides an array of built-in constants, ...READ MORE
Just as any other programming language, even ...READ MORE
There are three different ways of converting ...READ MORE
can you give an example? READ MORE
It represents a duration which is basically ...READ MORE
If you're trying to connect to a ...READ MORE
As far as I know there's no ...READ MORE
Hi Sucheta, The error I can see in ...READ MORE
Use the following command to change the ...READ MORE
The assert keyword is used while debugging ...READ MORE
You can use np.zeros(4,3) This will create a 4 ...READ MORE
Use numpy in the following manner: np.random.rand(3,4)*100 When you ...READ MORE
To create different arrays like random arrays: np.random.rand(3,4) ...READ MORE
Try this: np.savetxt('file.txt',arr,delimiter=' ') will save to a text ...READ MORE
Hi @Lina, you can use this: numpy_array = ...READ MORE
Can you give an example? READ MORE
Use this line: numpy_array = np.array(list) And printing/displaying the ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.