questions/python/page/23
You can use the in operator: if "blah" not in ...READ MORE
Hi@akhtar, You need to use the read function in ...READ MORE
First build an Element instance root from the XML, ...READ MORE
Hi@Noman, You created two empty list. And in ...READ MORE
Do not use with pip > 10.0! My ...READ MORE
Hello @divyashree def isPrime(n): # ...READ MORE
Instead of using the /regex/g syntax, you can construct ...READ MORE
If you don't configure one you might ...READ MORE
Hello @kartik, You can use Q objects for this. They ...READ MORE
1. I have a folder with multiple ...READ MORE
Both are actually IDE-s I don't know ...READ MORE
H= float (input("Is this circuit charging& ...READ MORE
Hi@akhtar, First, remove the Sklearn form your Windows system ...READ MORE
Hi, @There, The traceback module and sys.exc_info are ...READ MORE
Python 3 class MyClass(object): = New-style class class MyClass: = New-style ...READ MORE
Hii @kartik, The simple solution to over come ...READ MORE
Use: >>> import datetime >>> datetime.datetime.now() datetime.datetime(2009, 1, 6, 15, ...READ MORE
You should use conda to install Python ...READ MORE
Hello, The len() function can be used with several different ...READ MORE
Here are the steps you can follow: Install Python. ...READ MORE
Hi@akhtar, You can read an HDF file using ...READ MORE
Hello @kartik, To check for permissions in templates, ...READ MORE
Hello, Using try except and the right error ...READ MORE
Hello @kartik, Assuming you have pip installed and ...READ MORE
Hello @Azizjon, You can go through the example ...READ MORE
Hi@Ganesh, I think you are calling the wrong ...READ MORE
Look at the subprocess module in the standard library: import ...READ MORE
Hello @kartik, You can use BeautifulSoup: from bs4 import BeautifulSoup x="""<foo> ...READ MORE
Install the older version of python, I also ...READ MORE
It's because of the way in which ...READ MORE
There are some good answers here. I ...READ MORE
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
Hello @kartik, Basically instead of raising exception I ...READ MORE
Hi@akhtar, You need to install the Cython module ...READ MORE
Here are the steps that you can ...READ MORE
if i choose a value from first ...READ MORE
Hello I'm trying to scrape webpage by sending ...READ MORE
Hello @kartik, Look at the subprocess module in the standard ...READ MORE
Uninstall all python first then install python ...READ MORE
Hii Kartik, check uwsgi + django source code and pass static param ...READ MORE
Hii, Try this: import os os.listdir("somedirectory") Thank you!! ...READ MORE
Hello @kartik, You can solve this error by ...READ MORE
ah, sqlite3 stuff... remove .session file and ...READ MORE
You can try to catch these errors ...READ MORE
Hello @mahesh, First you have to fetch user ...READ MORE
Hello @kartik, Your problem is more easily addressed ...READ MORE
One approach just generates random integers up ...READ MORE
Most users try to use NoSQL-like DBs ...READ MORE
from collections import defaultdict a = {1: 2, ...READ MORE
Hello @kartik, You can use the add filter: {{ object.article.rating_score|add:"-100" }} Thank ...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.