Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be 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.
Audrey
How to code this?
A number is cool if the sum of its digits is divisible by 5.
Given an integer n, return the nth cool number.
I already wrote a function that returns the sum of an integer's digits.
2 AnswersMathematics5 years agoHow do I do (x^3 - 4)/(2x + 5)?
2 AnswersMathematics5 years agoIntegrate (x^3e^x^2)/(x^2+1)^2?
1 AnswerMathematics5 years agohigher specific heat means harder to heat up, right?
1 AnswerPhysics5 years agoModulus question!?
Exercise 3. Find all integer solutions to the following system of simultaneous congruences.
9x ≡ 6 (mod 15)
2x ≡ 2 (mod 14)
1 AnswerMathematics5 years agoBinary question?
If the binary value 10010011 represented a character transmitted using even parity but was erroneously received as 10110011, would the receiver be able to detect an error? Why or why not?
3 AnswersProgramming & Design5 years agoimproper integrals?
how do i integrate 1/(1+x)^(1/4) from infinity (upper bound) to 0?
2 AnswersMathematics5 years agophysics circular movement question?
why do you feel heaviest on the bottom of a swing?
4 AnswersPhysics5 years agodon't get why my code doesn't work...?
The assignment: Write a recursive function index_of_max(nums) that returns the index of the maximum value in the input list of numbers, leaving the original list unchanged.
Here's my code:
def index_of_max(nums):
if nums == []:
return "empty list" #base case 1
if len(nums) == 1:
return 0 #base case 2
else:
x = nums[0]
lst = nums[1:]
if x > index_of_max(lst):
return nums.index(x)
else:
return index_of_max(lst)
1 AnswerProgramming & Design5 years agoHelp coding simple python function?
I'm supposed to write a recursive function called count_xx(str) that counts the number of times "xx" appears in the input string. The "xx" substrings must not overlap.
1 AnswerProgramming & Design5 years agoHow to check a string for specific characters?
I'm supposed to write a function that "Given a string s, return True if any character in that string is lowercase (between 'a' and 'z'), and False otherwise."
My code doesn't account for cases like ASDdFHU and ABCDeF
3 AnswersProgramming & Design5 years agoPython help pls!!?
I need a function that "Given arbitrary values s and t, return True if both values are strings and s is a substring of t."
1 AnswerProgramming & Design5 years agoConcepts! help with bijection and proof?
1 AnswerMathematics5 years agoPython code help!!?
This is what the function should do: Given an arbitrary value x, return True if it is an integer, and it is positive, and it is even (all 3 must be True), or False otherwise. Do not crash if the value is not an integer. So, the input "yikes!" returns False (rather than crashing), and the input 123456 returns True.
1 AnswerProgramming & Design5 years agopython code help!!?
function that adds up positive integers in order starting from 1 until the sum is greater than 100 and then displays how many integers we needed to add to get a sum greater than 100 doesn't quite work..
Here is my code:
def howmanyint():
sum = 0
i = 0
while sum <= 100:
sum = sum + i
i + 1
return i
1 AnswerProgramming & Design5 years agoCONCEPTS QUESTION!! I need help with 3.32.?
1 AnswerMathematics5 years agophysics concept question?
in the absence of air, does it take the same time for a ball to drop a vertical distance H as another ball with a velocity in the x direction? Both balls drop a vertical distance H.
2 AnswersPhysics5 years agoLet x be a real number. Prove that if |x-1|<1, then |x^2-4x+3|<3?
1 AnswerMathematics5 years ago