Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Python
0
votes
Q: Convert two lists into a dictionary
Imagine that you have: keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam'] What is the simplest way ... 42, 'food' : 'spam'} Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
list
0
votes
Q: Python class inherits object
Is there any reason for a class declaration to inherit from an object? I just found some code that does this ... class code follows... Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
oop
object
0
votes
Q: What IDE to use for Python?
What IDEs ("GUIs/editors") do others use for Python coding? Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
0
votes
Q: Way to create multiline comments in Python?
I have recently started studying Python, but I couldn't find how to implement multi-line comments. Most languages ... comment feature? Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
0
votes
Q: Pythonic way to create a long multi-line string
I have a very long query. I would like to split it in several lines in Python. A way to do it in JavaScript ... '\ 'def_id=' + def_id Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
string
0
votes
Q: How do you test that a Python function throws an exception?
How does one write a unittest that fails only if a function doesn't throw an expected exception? Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
unit-testing
0
votes
Q: How to use a decimal range() step value?
Is there a way to step between 0 and 1 by 0.1? I thought I could do it like the following, but it failed: ... , which I did not expect. Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
floating-point
range
0
votes
Q: How to test multiple variables against a value?
I'm trying to make a function that will compare multiple variables to an integer and output a string of three ... like this possible? Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
if-statement
0
votes
Q: AWS : The config profile (MyName) could not be found
Every time I want to config something with AWS I get the following error : "The config profile (myname) ... encrypt my credentials. Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
amazon-web-services
python
credentials
aws-cli
0
votes
Q: How to overcome “datetime.datetime not JSON serializable”?
I have a basic dict as follows: sample = {} sample['title'] = "String" sample['somedate'] = somedatetimehere When ... 21:46:24.862000. Select the correct answer from above options...
asked
Jan 30, 2022
in
Education
by
JackTerrance
python
json
Page:
« prev
1
...
16
17
18
19
20
21
22
...
24
next »
...