questions/python
Hello @kartik, To check if the key exists ...READ MORE
Hello, Just wrap it in a list: def Change(self, ...READ MORE
Hii, Try this: import os os.listdir("somedirectory") Thank you!! ...READ MORE
Hello @kartik, You can use itertools.chain(): import itertools list2d = [[1,2,3], ...READ MORE
Hello, Using try except and the right error ...READ MORE
Hello @kartik, Look at the subprocess module in the standard ...READ MORE
Hello @kartik, Try this: def permutations(head, tail=''): ...READ MORE
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
Hello @kartik, Your problem is more easily addressed ...READ MORE
Hello @kartik, You can use Q objects for this. They ...READ MORE
Go for Django . It's easy and ...READ MORE
#appriciate your helping email = input("enter your email ...READ MORE
One approach just generates random integers up ...READ MORE
Use Markdown to style code: - Use a ...READ MORE
the code after return does not execute. ...READ MORE
You can open a file for simultaneous ...READ MORE
You're sending infinitely increasing data. Maybe it's ...READ MORE
your dis is obviously not 1.13, it's ...READ MORE
It's because of the way in which ...READ MORE
Open cmd and type the command and ...READ MORE
You can use isinstance() function to check ...READ MORE
ah, sqlite3 stuff... remove .session file and ...READ MORE
Hello @ Try this code: import math x, y = ...READ MORE
Hi, @There, The “TypeError: ‘float’ object cannot be ...READ MORE
You can go through this: from django.contrib.auth.models import ...READ MORE
Yes, pip install my plugin and check ...READ MORE
Most users try to use NoSQL-like DBs ...READ MORE
If you don't configure one you might ...READ MORE
Uninstall all python first then install python ...READ MORE
try import-export library of Django or if you are ...READ MORE
If u are using iframe, you can ...READ MORE
simple solution.. import hashlib Refferal(Model): user ...READ MORE
UpdateView only allows GET and POST... if ...READ MORE
I think u didn't install Django. python -m ...READ MORE
Use {{ request.user.get_profile.whatever }}. Django's templating language ...READ MORE
Hi. @Nandini, The above code will give you ...READ MORE
You can do something like this: while num ...READ MORE
It closes one tag actually, opentags is ...READ MORE
You can go through the given below: pd.set_option('display.max_rows', ...READ MORE
The Python installers for Windows include pip. ...READ MORE
I think you need to create some ...READ MORE
Hi,@ Manoj, I would suggest you go through ...READ MORE
Generators are originally created to return an ...READ MORE
You can try to catch these errors ...READ MORE
The AWS package in PyPI is not AWS's official ...READ MORE
Because the dcount and tcount variables you ...READ MORE
Install the older version of python, I also ...READ MORE
You can follow a few steps: click advanced ...READ MORE
'pip' is not recognized as an internal ...READ MORE
Either write your docs or use a ...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.