questions/python/page/19
Hello @kartik, You can use dict.get() value = d.get(key) which will ...READ MORE
n = int(input("please enter your no:")) k = ...READ MORE
As mentioned in the error logs, try ...READ MORE
Hello @kartik, Try this in your queryset: print my_queryset.query For ...READ MORE
There are three ways in which you ...READ MORE
A TypeError can occur if the type ...READ MORE
I'm trying to learn Python and this ...READ MORE
I have a model called Tribe which ...READ MORE
Simple: st = "abcdefghij" st = st[:-1] There is ...READ MORE
Hey, @Zodarlxx, Could you please post your error ...READ MORE
READ MORE
Install Xcode and Xcode Command Line Tools ...READ MORE
Hi@akhtar, It seems you don't have a Pymongo module ...READ MORE
how could i calculate weight for fico ...READ MORE
Hello @kartik, You can do this via Ajax. ...READ MORE
I have the same issue and is ...READ MORE
You can get the values as a ...READ MORE
Hello @Kartik, Use socket and its gethostname() functionality. This will get the hostname of ...READ MORE
<div class="_30jeq3 _1_WHN1">₹14,999</div> .I can't locate the ...READ MORE
Hey, @Roshni, You can use split() function to split a ...READ MORE
As you've guessed, the right syntax is del ...READ MORE
simple solution.. import hashlib Refferal(Model): user ...READ MORE
Hello, You can try this simple code: def getSum(n): ...READ MORE
Hi, i am trying to generating joined ...READ MORE
Hello @kartik, Concatenating the querysets into a list ...READ MORE
Hello @kartik, You could do this: import itertools ids = ...READ MORE
Hello, You can do it by using find_elements_by_xpath() driver ...READ MORE
You can do something like this: while num ...READ MORE
Hi@Nilesh, You have created two empty lists. And ...READ MORE
Hi, @Shabaj, Regarding your query, I hope this ...READ MORE
Hello @kartik, You need Django version 2 pip install ...READ MORE
It seems mysql_config is missing on your ...READ MORE
Use del and specify the index of the element ...READ MORE
Hi, @There, It requires a very simple hack ...READ MORE
Hello @kartik, The related_name would ensure that the fields were ...READ MORE
I am sure you are aware CSV ...READ MORE
You could use: with open('data.txt', 'r') as file: ...READ MORE
ysql> select * from exampleapp_author; +------+-------------------------+---------------+ | id ...READ MORE
Using an additional state variable, such as ...READ MORE
No need to put filename.txt For directory check path ...READ MORE
for i in range(m): d=dist(queryPoint,X[i]) &nb ...READ MORE
HI, @Ganesh, Tkinter is one of the most ...READ MORE
One thing that is really helpful in ...READ MORE
The AWS package in PyPI is not AWS's official ...READ MORE
Hi, @Micheal, Download pygame‑1.9.3‑cp37‑cp37m‑win_amd64. While if you have a 64-bit ...READ MORE
with open("test.txt", "a") as myfile: ...READ MORE
Python supports all the concept of "object ...READ MORE
Hi, @Rhydham, Try this: engine = pyttsx3.init('dummy') If you want ...READ MORE
You need to double the {{ and }}: >>> x = ...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.