Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
print value who divide by 2 and remain is 0.
Home
NumPy
print value who divide by 2 and remain is 0.
+1
vote
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print value who divide by 2 and remain is 0.
convert-boolean
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 9, 2021
by
rajeshsharma
print value who divide by 2 and remain is 0.
print(‘\n divided by 2 ‘,num[num%2==0]) #2,4,6,8,10
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+1
vote
Q: mask convert boolean values to number #num = np.arange(1,11)
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
convert-boolean
+2
votes
Q: Print the probabilty arr = [0.23, 0.09, 1.2, 1.24, 9.99] using fix() this example of fuzzy logic or probability
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
probability
+1
vote
Q: create 4*4 and print 0 to 12
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
create-array
+1
vote
Q: print random number from 0 to 1
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
print-random-number
+2
votes
Q: How to Print Range Between random number 2 row and 3 cols integers random numbers
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-range
+2
votes
Q: How to print zeros with 2 rows and 3 columns ?
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
print-numpy
+1
vote
Q: Print reshape devide into array like 2 array with 5 values
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print-reshape
+2
votes
Q: Print row 2 column 2 output will 9
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-row
+1
vote
Q: How to use of reshape ex.1 starting value is 1 and ending value is 50, print 10 integer random numbers
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print-array
0
votes
Q: What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
asked
May 16, 2020
in
Python
by
AdilsonLima
#python
Python-questions-answers
...