Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Brocko222
Python: Given a list of words, remove those with more than four characters?
Help answer this question:
def remove_long_words(words):
"""Given a list of words, remove any that are longer
than four letters and return a new, shorter list.
>>> w = ['ten', 'one', 'seven', 'nine', 'fifteen']
>>> remove_long_words(w)
['ten', 'one', 'nine']
>>> w = ['fifteen']
>>> remove_long_words(w)
[]
>>> w = ['ten', 'one', 'nine', 'six']
>>> remove_long_words(w)
['ten', 'one', 'nine', 'six']
>>> remove_long_words(['ten']) == ['ten']
True
"""
(replace this line with your code)
2 AnswersProgramming & Design7 years agoPrime Number Proof Question?
Let M be the product of two distinct prime numbers p1 and p2, and let a be an integer chosen so that the greatest common factor of a and M is 1.
By considering the value of a^(p1-1)(p2-1) modulo p1 and modulo p2, or otherwise, prove that a^(p1-1)(p2-1) ≡ 1 mod M.
1 AnswerMathematics8 years agoRSA Public Key Question?
An RSA Public Key system works with modulus 676873 which is the product of two primes. A message, represented by the number 3, is sent using the public exponent 17.
What is the corresponding encoded message?
1 AnswerMathematics8 years agoEvaluate the expression 5^160 (mod 13).?
1 AnswerMathematics8 years agoThis should be an easy question?
Of 270 students studying science:
64 have taken a computer science unit;
94 have taken a maths unit;
58 have taken a physics unit;
26 have taken a computer science unit and a maths unit;
28 have taken a computer science unit and a physics unit;
22 have taken a maths unit and a physics unit;
14 have taken a computer science, maths, and a physics unit.
How many if the students have not taken any unit in computer science, maths or physics?
2 AnswersMathematics8 years agoWhat are the pros of Snapchat?
1 AnswerOther - Internet8 years agoThe moon is no longer geologically active because?
a) it is rotating too slowly
b) its radioactive elements were never abundant
c) it is too small
d) its crust is too thin
e) it does not have water on its surface
4 AnswersAstronomy & Space8 years agoThe greenhouse effect occurs because?
a) carbon dioxide is transparent to visible light and opaque to infrared radiation
b) carbon dioxide is transparent to infrared radiation and opaque to ultraviolet radiation
c) ozone is transparent to infrared radiation and opaque to ultraviolet radiation
d) ozone is transparent to visible light and opaque to infrared radiation
e) the sun emits more infrared radiation than ultraviolet radiation
3 AnswersAstronomy & Space8 years agoWhat are the social responsibilities of astronomy?
References/links would be nice.
2 AnswersAstronomy & Space8 years agoWhat are the social responsibilities of astronomy?
References/links would be nice.
3 AnswersOther - Social Science8 years agoDo you agree with censorship on the internet? Why/why not?
3 AnswersMedia & Journalism9 years agoDo you agree with censorship on the internet? Why/why not?
2 AnswersOther - Internet9 years agoDo you agree with censorship on the internet? Why/why not?
2 AnswersLaw & Ethics9 years agoNeed help with this question?
A method for converting Analog DAA (Data Access Arrangement) into digital signals is PCM (Pulse-code modulation). How does it work?
1 AnswerComputer Networking9 years agoNeed help with this question?
A method for converting Analog DAA (Data Access Arrangement) into digital signals is PCM (Pulse-code modulation). How does it work?
2 AnswersOther - Computers9 years agoEasy maths question i need help with?
Shane borrows $9500 to purchase a new car. He repays the loan over 4 years at a rate of $246.60 per month. Calculate the flat rate of interest charged on the loan.
1 AnswerMathematics9 years agoEasy maths question i need help with?
The scale on a map is 1:50000. How far in kilometres is Uptown from Downtown if the distance between them on the map is 3.8 cm?
4 AnswersMathematics9 years ago