questions/python/page/23
H= float (input("Is this circuit charging& ...READ MORE
Hello @kartik, You can use Q objects for this. They ...READ MORE
Hello @kartik, The related_name would ensure that the fields were ...READ MORE
Hello, @There It depends on which version of ...READ MORE
Use: >>> import datetime >>> datetime.datetime.now() datetime.datetime(2009, 1, 6, 15, ...READ MORE
Hii @kartik, The simple solution to over come ...READ MORE
Hello @kartik, You could do this: Name.objects.exclude(alias__isnull=True) If you need ...READ MORE
Hi@akhtar, First, remove the Sklearn form your Windows system ...READ MORE
Hi@akhtar, You need to use the read function in ...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
Hello, The len() function can be used with several different ...READ MORE
Hi@akhtar, You can read an HDF file using ...READ MORE
https://www.youtube.com/watch?v=mqaf7vj1AdA This link has the program. It uses ...READ MORE
Hi, @There, The traceback module and sys.exc_info are ...READ MORE
Hello, Using try except and the right error ...READ MORE
There are some good answers here. I ...READ MORE
Install the older version of python, I also ...READ MORE
Look at the subprocess module in the standard library: import ...READ MORE
Classes (by default) are instances of the ...READ MORE
Hey @Avinash, Regarding your query, I would suggest ...READ MORE
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
Hello @kartik, Look at the subprocess module in the standard ...READ MORE
It's because of the way in which ...READ MORE
If you don't configure one you might ...READ MORE
Hello @kartik, You can use BeautifulSoup: from bs4 import BeautifulSoup x="""<foo> ...READ MORE
Hii, Try this: import os os.listdir("somedirectory") Thank you!! ...READ MORE
Hello @kartik, Assuming you have pip installed and ...READ MORE
Hi@Ganesh, I think you are calling the wrong ...READ MORE
if i choose a value from first ...READ MORE
Hello @kartik, To check for permissions in templates, ...READ MORE
One approach just generates random integers up ...READ MORE
Here are the steps that you can ...READ MORE
Uninstall all python first then install python ...READ MORE
Hello @kartik, Your problem is more easily addressed ...READ MORE
You can try to catch these errors ...READ MORE
ah, sqlite3 stuff... remove .session file and ...READ MORE
Use Markdown to style code: - Use a ...READ MORE
Hello @kartik, To check if the key exists ...READ MORE
Hello @Azizjon, You can go through the example ...READ MORE
Hi@akhtar, You need to install the Cython module ...READ MORE
Hello, Just wrap it in a list: def Change(self, ...READ MORE
Here are the steps you can follow: Install Python. ...READ MORE
Hello @mahesh, First you have to fetch user ...READ MORE
Most users try to use NoSQL-like DBs ...READ MORE
Which python projects are good for beginner ...READ MORE
the code after return does not execute. ...READ MORE
You can use isinstance() function to check ...READ MORE
Hi@Noman, You created two empty list. And in ...READ MORE
Use {{ request.user.get_profile.whatever }}. Django's templating language ...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.