questions/python/page/17
Hello @kartik, Try this: def permutations(head, tail=''): ...READ MORE
1. I have a folder with multiple ...READ MORE
Hello @karthik , Here is the code for you: for ...READ MORE
Try to use numpy and use .astype(np,int) ...READ MORE
On Python ≥ 3.5, use pathlib.Path.mkdir: from pathlib import ...READ MORE
Hello kartik, The variation of the context processor ...READ MORE
Indentation error. There should be indent before def ...READ MORE
H= float (input("Is this circuit charging& ...READ MORE
Go for Django . It's easy and ...READ MORE
Hello @divyashree def isPrime(n): # ...READ MORE
Use: >>> import datetime >>> datetime.datetime.now() datetime.datetime(2009, 1, 6, 15, ...READ MORE
Hello, @Pooja, Even I got the same issue, ...READ MORE
Hello @kartik, You can use Q objects for this. They ...READ MORE
Hello @kartik, You can debug a custom Django ...READ MORE
Hii @kartik, The simple solution to over come ...READ MORE
Hello @kartik, Without looking, it sounds like the ...READ MORE
Hello @kartik, The related_name would ensure that the fields were ...READ MORE
Hi@akhtar, It seems you don't have the turtle ...READ MORE
Hello, The len() function can be used with several different ...READ MORE
Python 3 class MyClass(object): = New-style class class MyClass: = New-style ...READ MORE
You should use conda to install Python ...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
Hi@akhtar, You can read an HDF file using ...READ MORE
Hello, @There It depends on which version of ...READ MORE
Classes (by default) are instances of the ...READ MORE
There are some good answers here. I ...READ MORE
Hello @kartik, You could do this: Name.objects.exclude(alias__isnull=True) If you need ...READ MORE
Install the older version of python, I also ...READ MORE
Hello, Using try except and the right error ...READ MORE
Look at the subprocess module in the standard library: import ...READ MORE
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
Hey @Avinash, Regarding your query, I would suggest ...READ MORE
It's because of the way in which ...READ MORE
Hi@akhtar, You need to use the read function in ...READ MORE
Hello @kartik, You can use BeautifulSoup: from bs4 import BeautifulSoup x="""<foo> ...READ MORE
Hello @kartik, Look at the subprocess module in the standard ...READ MORE
if i choose a value from first ...READ MORE
I think u didn't install Django. python -m ...READ MORE
Hii, Try this: import os os.listdir("somedirectory") Thank you!! ...READ MORE
One approach just generates random integers up ...READ MORE
Hi@Ganesh, I think you are calling the wrong ...READ MORE
ah, sqlite3 stuff... remove .session file and ...READ MORE
If you don't configure one you might ...READ MORE
Hello @kartik, Your problem is more easily addressed ...READ MORE
Use Markdown to style code: - Use a ...READ MORE
Hello, Just wrap it in a list: def Change(self, ...READ MORE
Uninstall all python first then install python ...READ MORE
Hello @kartik, Assuming you have pip installed and ...READ MORE
Hello @kartik, To check if the key exists ...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.