Answer:
def sum_cubes(n):
if n == 1:
return 1
else:
return n * n * n + sum_cubes(n-1)
print(sum_cubes(3))
Explanation:
Create a function called sum_cubes that takes one parameter, n
If n is equal to 1, return 1. Otherwise, calculate the cube of n, and add it to the sum_cubes function with parameter n-1
If we want to calculate the cubes of the first 3 numbers:
sum_cubes(3) = 3*3*3 + sum_cubes(2)
sum_cubes(2) = 2*2*2 + sum_cubes(1)
sum_cubes(1) = 1
If you substitute the values from the bottom, you get 27+8+1 = 36
Answer:
The social conditions brought about by the widespread use of computer networks for communication, entertainment, and business.
Hope This Helps!!!!
Explanation:
Answer:
2:
decNum = float(input("Decimal number: "))
if decNum != 16.5:
print("Does not equal")
elif decNum == 16.5:
print("Equal")
else:
pass
3:
if x > 57:
x += 4
print(x)
4:
numOne = int(input("Enter number: "))
numTwo = int(input("Enter number: "))
if numOne < 100 and numTwo < 100:
yes = numOne + numTwo
print(yes // 2)
else:
pass
Explanation:
Please give me brainliest.
Answer:
floppy discs:
easily damaged, large compared to newer external storage drives, newer computers don't have a floppy disc drive
Explanation: