Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python-faq
0
votes
Q: Why does comparing strings using either '==' or 'is' sometimes produce a different result?
I've set two variables to the value 'qwerty' in Python. In a conditional expression which fails i.e. var1 is ... mistakes I am doing? Select the correct answer from above options...
asked
Jan 23, 2022
in
Education
by
JackTerrance
python
python-faq
comparission
identity
0
votes
Q: What is the purpose of self?
when do we use self in Python? In ruby we don't need to include this whereas in Python we have to, so ... Can someone explain me this? Select the correct answer from above options...
asked
Jan 23, 2022
in
Education
by
JackTerrance
python
python-faq
class
self
0
votes
Q: What is the Python 3 equivalent of “python -m SimpleHTTPServer”
Can someone tell me a python -m SimpleHTTPServer equivalent Python 3? Select the correct answer from above options...
asked
Jan 23, 2022
in
Education
by
JackTerrance
httpserver
python
python-3
python-faq
sipplehttpserver
0
votes
Q: Importing files from different folder
How can I import the functions from file.py to another Python file which is in: app/app1/Folder1/xyz. ... folder1.xyz import func_name Select the correct answer from above options...
asked
Jan 23, 2022
in
Education
by
JackTerrance
python
python-faq
import
python-import
0
votes
Q: Delete column from pandas DataFrame
How to delete a column in a DataFrame, currently I am using: del df['column_1'] this is working fine, ... expected df.column_name ? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
dataframe
python
python-faq
panda
0
votes
Q: null object in Python?
Can someone tell me how to refer a null object in Python? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
null
python
python-faq
0
votes
Q: How do I trim whitespace?
How can I trim whitespace using python, I want to delete all spaces and tabs? For E.x. \t AT\t → At Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
whitespace
trim
python
python-faq
0
votes
Q: UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128)
Currently I am working on this code: customer_telno = customer.find('div', 'customer_phone_number') customer_telno = ... this problem? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python-faq
python-programming
python-2
x
0
votes
Q: Most elegant way to check if the string is empty in Python?
Does Python have something like an empty string variable where you can do: if myString == string.empty: Regardless, ... not as good. Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
pytho
python-faq
string
0
votes
Q: How can I represent an 'Enum' in Python?
Can anyone tell me how I can represent the equivalent of an Enum in Python? Select the correct answer from above options...
asked
Jan 22, 2022
in
Education
by
JackTerrance
python
python-faq
python-3
x
enums
Page:
« prev
1
2
3
4
next »
...