questions/python/page/19
n = int(input("please enter your no:")) k = ...READ MORE
Simple: st = "abcdefghij" st = st[:-1] There is ...READ MORE
There are three ways in which you ...READ MORE
Hey, @Zodarlxx, Could you please post your error ...READ MORE
<div class="_30jeq3 _1_WHN1">₹14,999</div> .I can't locate the ...READ MORE
tl;dr: Because of different default settings in ...READ MORE
The way you're assigning variables is not ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Hello @Kartik, Use socket and its gethostname() functionality. This will get the hostname of ...READ MORE
Hi, i am trying to generating joined ...READ MORE
Hello @kartik, Try this in your queryset: print my_queryset.query For ...READ MORE
You can get the values as a ...READ MORE
pip install -U os-sys READ MORE
Hello @kartik, You can do this via Ajax. ...READ MORE
Hello @kartik, Concatenating the querysets into a list ...READ MORE
As you've guessed, the right syntax is del ...READ MORE
Hey, @Roshni, You can use split() function to split a ...READ MORE
ysql> select * from exampleapp_author; +------+-------------------------+---------------+ | id ...READ MORE
Hi@akhtar, It seems you don't have a Pymongo module ...READ MORE
You can do something like this: while num ...READ MORE
for i in range(m): d=dist(queryPoint,X[i]) &nb ...READ MORE
Hello, You can try this simple code: def getSum(n): ...READ MORE
It seems mysql_config is missing on your ...READ MORE
Tried this and it resolved all my ...READ MORE
Hello @kartik, You could do this: import itertools ids = ...READ MORE
simple solution.. import hashlib Refferal(Model): user ...READ MORE
Hi@Nilesh, You have created two empty lists. And ...READ MORE
Hello @kartik, You need Django version 2 pip install ...READ MORE
Hi, @Shabaj, Regarding your query, I hope this ...READ MORE
Hello, You can do it by using find_elements_by_xpath() driver ...READ MORE
Hi, @There, It requires a very simple hack ...READ MORE
You could use: with open('data.txt', 'r') as file: ...READ MORE
HI, @Ganesh, Tkinter is one of the most ...READ MORE
Hello, @Aarohan, As the error message indicates, you ...READ MORE
The AWS package in PyPI is not AWS's official ...READ MORE
A TypeError can occur if the type ...READ MORE
Use del and specify the index of the element ...READ MORE
Hello @kartik, You can use dict.get() value = d.get(key) which will ...READ MORE
One thing that is really helpful in ...READ MORE
Hi, First thing YAML and JSON are not ...READ MORE
with open("test.txt", "a") as myfile: ...READ MORE
import bible import math def shortest_verse_by_word(my_dict): ...READ MORE
import numpy as np from copy import deepcopy from ...READ MORE
Install Xcode and Xcode Command Line Tools ...READ MORE
Hi, @There, The print() function prints the specified message to the ...READ MORE
Whenever I try to print the dictionaries ...READ MORE
Using an additional state variable, such as ...READ MORE
Try the method rstrip() (see doc Python 2 and Python 3) >>> 'test ...READ MORE
As mentioned in the error logs, try ...READ MORE
Hi@Herlambang, I think you have a 32-bit system. ...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.