questions/python
When you use "^" operator, it is ...READ MORE
This code occurs in multiprocessing.dummy, a "fake" ...READ MORE
Or, this one: def ins_sort(k): ...READ MORE
Hi everyone, Basically i made a bot in ...READ MORE
You could use a dictionary: def f(x): ...READ MORE
It's because any iterable can be joined ...READ MORE
Can you give an example using a ...READ MORE
In this case, you can use the ...READ MORE
Considering your file "Unique.txt" does just containt the IP ...READ MORE
Just import a module “keyword”. Here you ...READ MORE
i have a pdf file stored in ...READ MORE
Numpy.all does not understands generator expressions. From the ...READ MORE
Can you give the sample code as ...READ MORE
A list is created by adding comma ...READ MORE
If you want to create a subarray ...READ MORE
Opening sockets in python is pretty simple. ...READ MORE
print is a function in Python 3.x, so ...READ MORE
Using callable objects has a disadvantage over ...READ MORE
To initialize an empty list do this: new_list ...READ MORE
A way to do this without mocking ...READ MORE
You can try the following and see ...READ MORE
math.fabs() converts its argument to float if it ...READ MORE
Hello @kartik, You can use Q objects for this. They ...READ MORE
Hello @kartik, This is a helper to set ...READ MORE
Python does not use brackets, it uses ...READ MORE
If you only have one reference to ...READ MORE
There are three ways in which you ...READ MORE
If we are using one numerical variable ...READ MORE
dic={"car":["limo","sedan"]} print (dic.keys()) <-----------------------Fetch the key "car" print (dic['car'][0]) <------------------------Fetch ...READ MORE
This is my code: from tkinter import * root ...READ MORE
Import the file as a pandas dataframe ...READ MORE
READ MORE
There are various ways we can replace ...READ MORE
Hi, You can use built-in function "len" to ...READ MORE
import math infinity = math.inf Now you can use ...READ MORE
Use docstrings for multi-line commenting - """ Line 1 Line ...READ MORE
Hey, @Athrava Gulve, Hey, @Atharva, Which version of Python your ...READ MORE
If you use and on two or ...READ MORE
You can use it to raise errors ...READ MORE
Namespace is a way to implement scope. In ...READ MORE
Yes. Use os.path.splitext >>> import os >>> filename, file_extension = ...READ MORE
Hi@akhtar, Yes, you can read your image in ...READ MORE
Try something like this: i=1 for i in range(10): ...READ MORE
You can write the code as follows ...READ MORE
venv (for Python 3) and virtualenv (for Python 2) allow ...READ MORE
It's a function which is a member ...READ MORE
class Solution(object): def symtr(self,root1, root2): if(root1==None and root2==None): return True elif(root1==None ...READ MORE
hello everybody, hoping that all with good ...READ MORE
The reason you need to use self. ...READ MORE
Use random.choice() import random foo = ['a', 'b', 'c', 'd', ...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.