Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged python
0
votes
Q: How can I force division to be floating point? Division keeps rounding down to 0?
I have two integer values a and b, but I need their ratio in floating point. I know that a < b, and I want ... the following? c= a / b Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
floating-point
python-3
python
operator
0
votes
Q: Difference between del, remove and pop on lists
>>> a=[1,2,3] >>> a.remove(2) >>> a [1, 3] >>> a=[1,2,3] >>> del a[1] >>> a ... above three methods to remove an element from a list? Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
methods
del
python
python-3
python-list
0
votes
Q: print variable and a string in python
Alright, I know how to print variables and strings. But how can I print something like "My string" card.price ... variable card.price). Select the correct answer from above options...
asked
Jan 26, 2022
in
Education
by
JackTerrance
python
0
votes
Q: Partial match between two python lists, one list exactly present in the other with few additional characters in Python
I want to create a new list from the existing two lists that will have all the matches from list 2 which has an exact ... *", i) in a] Select the correct answer from above options...
asked
Jan 25, 2022
in
Education
by
JackTerrance
python
list
dictionary
list-comprehension
0
votes
Q: “pip install unroll”: “python setup.py egg_info” failed with error code 1
I'm new to Python and I want to install some packages with pip. But pip install unroll gives me: Command " ... How to solve this? Select the correct answer from above options...
asked
Jan 25, 2022
in
Education
by
JackTerrance
python
pip
package
install
0
votes
Q: Shorter, more pythonic way of writing an if statement
I have a code: ab = 'off' if b.page == 'blog': ab = 'on' print ab Is there any other way to make it shorter in Python? Select the correct answer from above options...
asked
Jan 25, 2022
in
Education
by
JackTerrance
python
if-statement
0
votes
Q: Difference between “if x” and “if x is not None”
It appears that "if x" is almost like short-hand for the longer "if x is not None" syntax. Are they ... would be great to know. Select the correct answer from above options...
asked
Jan 25, 2022
in
Education
by
JackTerrance
python
boolean
0
votes
Q: Best way to save a trained model in PyTorch?
I am searching for the better option to save a trained model in PyTorch, these are the options I am using ... the above two functions? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
deep-learning
pytorch
tensorflow
0
votes
Q: What does tf.nn.embedding_lookup function do?
What does the following function do? Should I consider it as a lookup table like in skip-gram model? tf.nn. ... mod', name=None) Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
tensorflow
deep-learning
natural-language-processing
0
votes
Q: What is the difference between 'SAME' and 'VALID' padding in tf.nn.max_pool of tensorflow?
In tf.nn.max_pool of tensorflow what is the difference between 'SAME' and 'VALID'? I read in here that ... pool means in tensorflow? Select the correct answer from above options...
asked
Jan 24, 2022
in
Education
by
JackTerrance
python
tensorflow
deep-learning
Page:
« prev
1
...
21
22
23
24
...