Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python-programming
0
votes
Q: Using @property versus getters and setters
Here is a pure Python-specific design question: class MyClass(object): ... def get_my_attr(self): ... def ... you use and why? Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
python
python-programming
0
votes
Q: How do you remove duplicates from a list whilst preserving order?
Is there a built-in that removes duplicates from a list in Python, whilst preserving order? I know that I can ... idiom if possible. Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
python
list
duplicate
python-faq
python-programming
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: Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?
What makes using range() to make the process of generating a quadrillion values in a instant of time, I am amazed by ... o += 1 return Select the correct answer from above options...
asked
Jan 21, 2022
in
Education
by
JackTerrance
python
python-programming
range
python-faq
0
votes
Q: What exactly is the function of random.seed() in python?
Please tell me what random.seed() does in Python. For example, why do the below trials do what they do ( ... randint(1, 10) 7 Select the correct answer from above options...
asked
Jan 21, 2022
in
Education
by
JackTerrance
python
python-programming
To see more, click for the
full list of questions
or
popular tags
.
...