Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged python
0
votes
Q: Why are Python lambdas useful?
I'm trying to figure out Python lambdas. Is lambda one of those "interesting" language items that in ... maintenance coder nightmare. Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
python-functions
0
votes
Q: Terminating a Python script
I am aware of the die() command in PHP which stops a script early. How can I do this in Python? Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
0
votes
Q: Get key by value in dictionary
I made a function which will look up ages in a Dictionary and show the matching name: dictionary = {'george' ... it search backward. Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
dictionary
0
votes
Q: Why use def main()?
I've seen some code samples and tutorials that use def main(): # my code here if __name__ == "__main__": ... any rhyme to the main? Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
0
votes
Q: How to split a string into a list?
I want my Python function to split a sentence (input) and store each word in a list. My current code splits ... the word print(words) Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
lists
0
votes
Q: python write list to file
Is this the cleanest way to write a list to a file, since writelines() doesn't insert newline characters? file. ... be a standard way. Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
list
file-io
0
votes
Q: python sort list of tuples:-How to sort (list/tuple) of lists/tuples by the element at a given index?
I have some data either in a list of lists or a list of tuples, like this: data = [[1,2,3], [4,5, ... store tuples or lists in my list? Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
lists
0
votes
Q: Convert date to datetime in Python
Is there a built-in method for converting a date to a datetime in Python, for example getting the datetime for the ... .month, d.day)? Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
date-time
date
0
votes
Q: How do I parse an ISO 8601-formatted date?
I need to parse RFC 3339 strings like "2008-09-03T20:56:35.450686Z" into Python's datetime type. I have found ... best way to do this? Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
datetime
0
votes
Q: How to return dictionary keys as a list in Python?
In Python 2.7, I could get dictionary keys, values, or items as a list: >>> newdict = {1:0, 2:0, 3:0} ... to return a list in Python 3? Select the correct answer from above options...
asked
Feb 4, 2022
in
Education
by
JackTerrance
python
list
dictionary
Page:
« prev
1
...
11
12
13
14
15
16
17
...
24
next »
...