Recent questions tagged Python-faq

0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
0 votes
    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
...