questions/python
from collections import defaultdict a = {1: 2, ...READ MORE
Setting the font size of the figure ...READ MORE
Hello @kartik, The << part is wrong, use < instead: $ ./manage.py shell ...READ MORE
sys.argv[1] contains the first command line argument passed to your script. For ...READ MORE
can you try something like this? not ...READ MORE
Hello @kartik, Use handy request.build_absolute_uri() method on request, pass it ...READ MORE
Try this: import turtle turtle = turtle.Pen() turtle.left(90) for x in ...READ MORE
You need to filter out directories; os.listdir() ...READ MORE
Hello @kartik, Expire the session on browser close ...READ MORE
The reason for this error is that ...READ MORE
Hi, I have encountered the same issue. It ...READ MORE
Read & Write YAML files with Python ...READ MORE
Hi, I am very new to Python ...READ MORE
from django.urls import include you can import it ...READ MORE
Hey @Giorgio, You can try this hope this ...READ MORE
Hello @kartik, As another option, you can do ...READ MORE
Use re.sub. Just match all the chars ...READ MORE
You can try this @Mahesh: lst = [ ...READ MORE
Steps to Convert Text File to CSV ...READ MORE
Hello @kartik, If you want two objects with ...READ MORE
Hello @kartik, If you want to import reverse, ...READ MORE
Hello kartik, The variation of the context processor ...READ MORE
Hi@akhtar, You may get this error if you ...READ MORE
If you are using Python 3.x then ...READ MORE
In Python 3 (< 3.3) From the docs ...READ MORE
>>> import scipy >>> scipy.misc Traceback (most recent call ...READ MORE
You can get the ASCII value of ...READ MORE
Hello @kartik, Only change your pub_date if published has ...READ MORE
The command you're looking for is: python3.7 -m ...READ MORE
you can try the following: x.add(y, fill_value=0) import pandas ...READ MORE
Hello @kartik, You can definitely do this using ...READ MORE
Use the following command to install tkinter ...READ MORE
Try something like this: import turtle # create a ...READ MORE
Try this: Uninstall python with admin privileges. Shut down ...READ MORE
If you want to use the same ...READ MORE
Hello @kartik, If you don't need to query ...READ MORE
pip install openssl-python run this command in the ...READ MORE
It is possible that either urllib3 is ...READ MORE
Hello @kartik, Using a modelserializer might be an ...READ MORE
Since I am using python 3.5 so ...READ MORE
you want install 1.pip uninstall nmap 2.pip install python-nmap in ...READ MORE
Hello @kartik, request.user is User model object. You cannot access ...READ MORE
You can plot the chart by taking ...READ MORE
[dict(t) for t in {tuple(d.items()) for d ...READ MORE
cursor.execute("INSERT INTO table VALUES (%s, %s, %s)", ...READ MORE
Hii Kartik, check uwsgi + django source code and pass static param ...READ MORE
Hi@akhtar, It seems you don't have a torch ...READ MORE
I got the same error "module not ...READ MORE
Hello @kartik, Using a form in a view can ...READ MORE
Hello @kartik, None, False and True all are available ...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.