questions/python/page/13
Hey, @Zodarlxx, Could you please post your error ...READ MORE
Hi, I am very new to Python ...READ MORE
Hello @Kartik, Use socket and its gethostname() functionality. This will get the hostname of ...READ MORE
tl;dr: Because of different default settings in ...READ MORE
If i understand your question correct then ...READ MORE
Hi@akhtar, It seems you don't have a torch ...READ MORE
You can get the values as a ...READ MORE
Hi, @There, Make sure that your MongoDB instance ...READ MORE
g1 here is a DataFrame. It has a hierarchical index, ...READ MORE
Hey, @S, you can have a look at ...READ MORE
I had recently found its solution and ...READ MORE
Hi@akhtar, You can use the DateTime module to insert a date into ...READ MORE
If you write x.insert(2,3) and then print x ...READ MORE
Hello @kartik, None, False and True all are available ...READ MORE
By default when you import a file, ...READ MORE
Hello, @Aarohan, As the error message indicates, you ...READ MORE
As you've guessed, the right syntax is del ...READ MORE
You can do something like this: while num ...READ MORE
Hello @kartik, The easiest way for your use ...READ MORE
Hello, You can try this simple code: def getSum(n): ...READ MORE
Hello @kartik, Since you are in Django, you ...READ MORE
Hello @kartik, The error caused when you try ...READ MORE
n = int(input("please enter your no:")) k = ...READ MORE
It seems mysql_config is missing on your ...READ MORE
You could use: with open('data.txt', 'r') as file: ...READ MORE
HI, @Ganesh, Tkinter is one of the most ...READ MORE
Try the method rstrip() (see doc Python 2 and Python 3) >>> 'test ...READ MORE
Hello @kartik, Concatenating the querysets into a list ...READ MORE
Whenever I try to print the dictionaries ...READ MORE
Hi, @There, The print() function prints the specified message to the ...READ MORE
simple solution.. import hashlib Refferal(Model): user ...READ MORE
Hello @kartik, The render_to_response shortcut was deprecated in Django 2.0, and ...READ MORE
Hi, @Arjmand, I would suggest you go through ...READ MORE
Hello @kartik, request.user is User model object. You cannot access ...READ MORE
Hello @kartik, You need Django version 2 pip install ...READ MORE
Use del and specify the index of the element ...READ MORE
import shutil shutil.rmtree('/folder_name') By design, rmtree fails on folder trees containing ...READ MORE
with open("test.txt", "a") as myfile: ...READ MORE
motion_detection.ipynb # Python program to implement # Webcam ...READ MORE
One thing that is really helpful in ...READ MORE
Hi, @Shabaj, Regarding your query, I hope this ...READ MORE
Hi, First thing YAML and JSON are not ...READ MORE
Hi@Herlambang, I think you have a 32-bit system. ...READ MORE
Hi@Nilesh, You have created two empty lists. And ...READ MORE
If you only want one item's count, ...READ MORE
You need to double the {{ and }}: >>> x = ...READ MORE
Strings: >>> n = '4' >>> print(n.zfill(3)) 004 And for numbers: >>> ...READ MORE
Hello @kartik, You can do this via Ajax. ...READ MORE
Example class Date(object): def __init__(self, ...READ MORE
Have you tried the __name__ attribute of the class? ie type(x).__name__ will ...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.